Dotclear


Ignore:
Timestamp:
10/06/13 00:26:27 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
Branch:
widgets
Message:

widgets : fléche pour réordonner sans drag&drop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/dragdrop.js

    r2395 r2401  
    5959                
    6060               // réordonne 
    61                if( ul.attr('id') ) { 
    62                     ul.find('li').each(function(i) { 
    63                           
    64                          // trouve la zone de réception 
    65                          var name = ul.attr('id').split('dnd').join(''); 
    66                           
    67                          // modifie le name en conséquence 
    68                          $(this).find('*[name^=w]').each(function(){ 
    69                               tab = $(this).attr('name').split(']['); 
    70                               tab[0] = "w["+name; 
    71                               tab[1] = i; 
    72                               $(this).attr('name', tab.join('][')); 
    73                          }); 
    74                           
    75                          // ainssi que le champ d'ordre sans js (au cas ou) 
    76                          $(this).find('input[title=ordre]').val(i); 
    77                           
    78                     }); 
    79                } 
     61               reorder(ul); 
    8062                
    8163               // expand 
Note: See TracChangeset for help on using the changeset viewer.

Sites map