From 74d8846ff865f0f1feca4c0816192f47f90e0e61 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 13 Jun 2023 11:49:44 +0000 Subject: [PATCH] Bug 33528: (follow-up) Correct selector for event handler The event handler for restriction deletion needs to be adjusted according to the new container ID. Without this change the JavaScript confirmation message didn't appear and restrictions were deleted without confirmation. Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 78431a983d6dabc5c5d2be655f8f959bdb79aaed) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js b/koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js index bc11e37347..7a8f53f474 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js @@ -68,7 +68,7 @@ $(document).ready(function() { }); // Debarments - $("div#reldebarments .remove_restriction").on("click",function(){ + $("#reldebarments_panel .remove_restriction").on("click",function(){ return confirm( __("Remove restriction?") ); }); var mrform = $("#manual_restriction_form"); -- 2.39.2