Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. changer helper id
  2. $('.column1').draggable({
  3. containment: '#sort' ,
  4. helper:'clone',
  5. connectToSortable:'#sort',
  6. start: function(event,ui) {
  7.             i=counts[ 0 ]++;
  8.             document.getElementById('wid').value=i;
  9.             updateCounterStatus( $start_counter, counts[ 0 ] );
  10.             ui.helper.attr("id","colum2");
  11.  
  12.  
  13.         }
  14.        
  15. start: function(event,ui) {
  16.     i=counts[ 0 ]++;
  17.     document.getElementById('wid').value=i;
  18.     updateCounterStatus( $start_counter, counts[ 0 ] );
  19.     $('.ui-draggable-dragging').attr("id","colum2");
  20. }
  21.        
  22. $('#colum').draggable({
  23.  
  24. helper:'clone',
  25. connectToSortable:'#sort',
  26. start: function(event,ui) {
  27.             k=counts[ 0 ]++;
  28.             document.getElementById('wid').value=i;
  29.             updateCounterStatus( $start_counter, counts[ 0 ] );
  30.              $(this).attr("id","colum"+k);
  31.  
  32.  
  33.  
  34.         }