Dotclear

Changeset 2560:4ce25b2f2f5f


Ignore:
Timestamp:
11/15/13 22:38:56 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Typo in widgets.js (prevented ordering in all languages but french)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/widgets.js

    r2408 r2560  
    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                 
     73//             $this.find('input[title=ordre]').val(i); 
     74               $this.find('input[name*=order]').val(i); 
     75 
    7576               // active ou désactive les fléches 
    7677               if( i == 0 ) { 
     
    8889                    $this.find('input.downWidget').prop('src', 'images/down.png' ); 
    8990               } 
    90                 
     91 
    9192          }); 
    9293     } 
     
    9899          return window.confirm(dotclear.msg.confirm_widgets_reset); 
    99100     }); 
    100       
     101 
    101102     // plier/déplier 
    102103     $('#dndnav > li, #dndextra > li, #dndcustom > li').each(function() { 
     
    104105          dotclear.viewPostContent($(this), 'close'); 
    105106     }); 
    106       
     107 
    107108     // remove 
    108109     $('input[name*=_rem]').click(function (e) { 
     
    110111          $(this).parents('li').remove(); 
    111112     }); 
    112       
     113 
    113114     // move 
    114115     $('input[name*=_down]').click(function (e) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map