Dotclear


Ignore:
Timestamp:
12/07/16 17:12:43 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add button type to non submit button, add meta-helper class to meta editor buttons, cope with helper buttons in confirm-close.js, addresses #2226

The

chainHandler(window,'onload',function() {

confirmClosePage.getCurrentForms();

});

seems to be run before all DOM ready (with all js done), CKEditor or LegacyEditor? add some stuff to current form after that ?!?
a 1 second delay to run again confirmClosePage.getCurrentForms() is not enough…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r3434 r3445  
    380380          $(e).append(document.createTextNode(' ')); 
    381381 
    382           $('<button class="checkbox-helper select-all">'+dotclear.msg.select_all+'</button>').click(function() { 
     382          $('<button type="button" class="checkbox-helper select-all">'+dotclear.msg.select_all+'</button>').click(function() { 
    383383               if (target !== undefined) { 
    384384                    target.check(); 
     
    393393          $(e).append(document.createTextNode(' ')); 
    394394 
    395           $('<button class="checkbox-helper select-none">'+dotclear.msg.no_selection+'</button>').click(function() { 
     395          $('<button type="button" class="checkbox-helper select-none">'+dotclear.msg.no_selection+'</button>').click(function() { 
    396396               if (target !== undefined) { 
    397397                    target.unCheck(); 
     
    406406          $(e).append(document.createTextNode(' ')); 
    407407 
    408           $('<button class="checkbox-helper select-reverse">'+dotclear.msg.invert_sel+'</button>').click(function() { 
     408          $('<button type="button" class="checkbox-helper select-reverse">'+dotclear.msg.invert_sel+'</button>').click(function() { 
    409409               if (target !== undefined) { 
    410410                    target.toggleCheck(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map