mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fix #2103 the modal is closed only if visible
This commit is contained in:
@@ -481,7 +481,7 @@ jQuery(document).ready(function() {
|
||||
});
|
||||
$(document).on('keyup', function (e) {
|
||||
// 27 is 'Escape'
|
||||
if(e.keyCode === 27) {
|
||||
if(e.keyCode === 27 && desc_modal.is(':visible')) {
|
||||
desc_modal.fadeToggle();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user