From df9f28b4420bc54354bfbdcf2ceae791ed9bfb71 Mon Sep 17 00:00:00 2001 From: "Willy \"Linty" Date: Fri, 2 Feb 2024 10:44:37 +0100 Subject: [PATCH] (cp 24bce3eb0) fix #2103 the modal is closed only if visible --- admin/themes/default/js/cat_modify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/js/cat_modify.js b/admin/themes/default/js/cat_modify.js index 479c0cf9c..c160e7636 100644 --- a/admin/themes/default/js/cat_modify.js +++ b/admin/themes/default/js/cat_modify.js @@ -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(); } });