Dotclear

Changeset 3700:6a3097e81a2f


Ignore:
Timestamp:
02/15/18 11:32:44 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Admin popups: dealing with Escape key fired → do nothing and close popup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r3685 r3700  
    450450    window.open($(this).attr('href')); 
    451451  }); 
     452  // Popups: dealing with Escape key fired 
     453  $('#dotclear-admin.popup').keyup(function(e) { 
     454    if (e.key == 'Escape') { 
     455      e.preventDefault(); 
     456      window.close(); 
     457      return false; 
     458    } 
     459  }); 
    452460  // Blog switcher 
    453461  $('#switchblog').change(function() { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map