From 24bce3eb031556d9d298b4b880373d8e2a77c857 Mon Sep 17 00:00:00 2001 From: "Willy \"Linty" Date: Fri, 2 Feb 2024 10:39:55 +0100 Subject: [PATCH] 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(); } });