Dotclear

Changeset 1834:f4c0c4d04639 for admin/js


Ignore:
Timestamp:
09/12/13 00:08:55 (12 years ago)
Author:
kevin@…
Branch:
Ticket #1539
Parents:
1833:81903fe2f6eb (diff), 1799:a5868fc53e27 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Fusion avec default

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r1798 r1834  
    263263     }, 
    264264 
    265      checkboxesHelpers: function(e) { 
     265     checkboxesHelpers: function(e, target) { 
    266266          $(e).append(document.createTextNode(dotclear.msg.to_select)); 
    267267          $(e).append(document.createTextNode(' ')); 
    268268 
     269          target = target || $(e).parents('form').find('input[type="checkbox"]'); 
     270           
    269271          var a = document.createElement('a'); 
    270272          a.href='#'; 
    271273          $(a).append(document.createTextNode(dotclear.msg.select_all)); 
    272274          a.onclick = function() { 
    273                $(this).parents('form').find('input[type="checkbox"]').check(); 
     275               target.check(); 
    274276               return false; 
    275277          }; 
     
    282284          $(a).append(document.createTextNode(dotclear.msg.no_selection)); 
    283285          a.onclick = function() { 
    284                $(this).parents('form').find('input[type="checkbox"]').unCheck(); 
     286               target.unCheck(); 
    285287               return false; 
    286288          }; 
     
    293295          $(a).append(document.createTextNode(dotclear.msg.invert_sel)); 
    294296          a.onclick = function() { 
    295                $(this).parents('form').find('input[type="checkbox"]').toggleCheck(); 
     297               target.toggleCheck(); 
    296298               return false; 
    297299          }; 
  • admin/js/common.js

    r1829 r1834  
    348348$(function() { 
    349349     // remove class no-js from html tag; cf style/default.css for examples 
    350      $('body').removeClass('no-js'); 
    351      $('body').addClass('with-js'); 
    352  
     350     $('body').removeClass('no-js').addClass('with-js'); 
     351      
    353352     $('#wrapper').contents().each(function() { 
    354353          if (this.nodeType==8) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map