From 4cbe6b0895e6588ae1605248b454d8949bb18cd7 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 26 Apr 2024 09:11:38 +0000 Subject: [PATCH] Bug 36706: Fix close button 1) Visit http://localhost:8081/cgi-bin/koha/members/memberentry.pl 2) Click 'Search' 3) Click on any cardnumber of any of the search results 4) Click 'close window'. Notice it doesnt close. 5) Apply patch. Repeat test plan. --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 2c934936d34..6dd9d150fa5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -698,7 +698,7 @@ var borrowernumber = $(this).data("borrowernumber"); var page = "/cgi-bin/koha/members/moremember.pl?print=brief&borrowernumber=" + borrowernumber; $("#patron_preview_modal").load( page + " div.container-fluid", function(){ - $("#patron_preview_modal").find(".close").on("click", function(){ + $("#patron_preview_modal").find(".close_window").on("click", function(){ $('#patron_preview_modal').html(_("Loading...")).removeClass("show"); }); }); -- 2.39.2