Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/widgets.js

    r2560 r2408  
    2020     br = title.find('br'); 
    2121     title.empty().append(order).append(link).append(tools).append(br); 
    22  
     22      
    2323     var img = document.createElement('img'); 
    2424     img.src = dotclear.img_plus_src; 
     
    3131          dotclear.viewPostContent($(this).parents('li')); 
    3232     }); 
    33  
     33      
    3434     title.prepend(img); 
    3535}; 
     
    3939     var img = line.find('.expand'); 
    4040     var isopen = img.attr('alt') == dotclear.img_plus_alt; 
    41  
     41      
    4242     if( action == 'close' || ( action == 'toogle' && !isopen ) ) { 
    4343          line.find('.widgetSettings').hide(); 
     
    4949          img.attr('alt', dotclear.img_minus_alt); 
    5050     } 
    51  
     51      
    5252}; 
    5353 
     
    5858          $list.each(function(i) { 
    5959               $this = $(this); 
    60  
     60                
    6161               // trouve la zone de réception 
    6262               var name = ul.attr('id').split('dnd').join(''); 
    63  
     63                
    6464               // modifie le name en conséquence 
    6565               $this.find('*[name^=w]').each(function(){ 
     
    6969                    $(this).attr('name', tab.join('][')); 
    7070               }); 
    71  
     71                
    7272               // ainsi que le champ d'ordre sans js (au cas ou) 
    73 //             $this.find('input[title=ordre]').val(i); 
    74                $this.find('input[name*=order]').val(i); 
    75  
     73               $this.find('input[title=ordre]').val(i); 
     74                
    7675               // active ou désactive les fléches 
    7776               if( i == 0 ) { 
     
    8988                    $this.find('input.downWidget').prop('src', 'images/down.png' ); 
    9089               } 
    91  
     90                
    9291          }); 
    9392     } 
     
    9998          return window.confirm(dotclear.msg.confirm_widgets_reset); 
    10099     }); 
    101  
     100      
    102101     // plier/déplier 
    103102     $('#dndnav > li, #dndextra > li, #dndcustom > li').each(function() { 
     
    105104          dotclear.viewPostContent($(this), 'close'); 
    106105     }); 
    107  
     106      
    108107     // remove 
    109108     $('input[name*=_rem]').click(function (e) { 
     
    111110          $(this).parents('li').remove(); 
    112111     }); 
    113  
     112      
    114113     // move 
    115114     $('input[name*=_down]').click(function (e) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map