Changeset 2401:06f7d3a90bd0 for plugins/widgets/dragdrop.js
- Timestamp:
- 10/06/13 00:26:27 (12 years ago)
- Branch:
- widgets
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/dragdrop.js
r2395 r2401 59 59 60 60 // 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); 80 62 81 63 // expand
Note: See TracChangeset
for help on using the changeset viewer.