Dotclear


Ignore:
Timestamp:
08/31/18 18:09:41 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Do not fire a click on a disabled button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r3840 r3841  
    290290  enterKeyInForm: function(frm_id, ok_id, cancel_id) { 
    291291    $(frm_id + ':not(' + cancel_id + ')').keyup(function(e) { 
    292       if (e.key == 'Enter') { 
     292      if ((e.key == 'Enter') && ($(ok_id).prop('disabled') !== true)) { 
    293293        e.preventDefault(); 
    294294        e.stopPropagation(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map