From 5f96f455631d474b953f56d79f1bdd7be6833c3b 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. --- 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.30.2