Changeset 2560:4ce25b2f2f5f
- Timestamp:
- 11/15/13 22:38:56 (10 years ago)
- Branch:
- 2.6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/widgets.js
r2408 r2560 20 20 br = title.find('br'); 21 21 title.empty().append(order).append(link).append(tools).append(br); 22 22 23 23 var img = document.createElement('img'); 24 24 img.src = dotclear.img_plus_src; … … 31 31 dotclear.viewPostContent($(this).parents('li')); 32 32 }); 33 33 34 34 title.prepend(img); 35 35 }; … … 39 39 var img = line.find('.expand'); 40 40 var isopen = img.attr('alt') == dotclear.img_plus_alt; 41 41 42 42 if( action == 'close' || ( action == 'toogle' && !isopen ) ) { 43 43 line.find('.widgetSettings').hide(); … … 49 49 img.attr('alt', dotclear.img_minus_alt); 50 50 } 51 51 52 52 }; 53 53 … … 58 58 $list.each(function(i) { 59 59 $this = $(this); 60 60 61 61 // trouve la zone de réception 62 62 var name = ul.attr('id').split('dnd').join(''); 63 63 64 64 // modifie le name en conséquence 65 65 $this.find('*[name^=w]').each(function(){ … … 69 69 $(this).attr('name', tab.join('][')); 70 70 }); 71 71 72 72 // ainsi que le champ d'ordre sans js (au cas ou) 73 $this.find('input[title=ordre]').val(i); 74 73 // $this.find('input[title=ordre]').val(i); 74 $this.find('input[name*=order]').val(i); 75 75 76 // active ou désactive les fléches 76 77 if( i == 0 ) { … … 88 89 $this.find('input.downWidget').prop('src', 'images/down.png' ); 89 90 } 90 91 91 92 }); 92 93 } … … 98 99 return window.confirm(dotclear.msg.confirm_widgets_reset); 99 100 }); 100 101 101 102 // plier/déplier 102 103 $('#dndnav > li, #dndextra > li, #dndcustom > li').each(function() { … … 104 105 dotclear.viewPostContent($(this), 'close'); 105 106 }); 106 107 107 108 // remove 108 109 $('input[name*=_rem]').click(function (e) { … … 110 111 $(this).parents('li').remove(); 111 112 }); 112 113 113 114 // move 114 115 $('input[name*=_down]').click(function (e) {
Note: See TracChangeset
for help on using the changeset viewer.