mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02: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) {
|
$(document).on('keyup', function (e) {
|
||||||
// 27 is 'Escape'
|
// 27 is 'Escape'
|
||||||
if(e.keyCode === 27) {
|
if(e.keyCode === 27 && desc_modal.is(':visible')) {
|
||||||
desc_modal.fadeToggle();
|
desc_modal.fadeToggle();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user