From d38735964c96793c8f328dd5f6bc0c4eaeccc26c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 26 Apr 2024 07:48:52 +0100 Subject: [PATCH] Bug 35362: (follow-up) Fix preview close on guarantor add When adding a guarantor you are given a patron search modal. If you then preview a search result, the preview modal could not be closed. It's a simple update for 'close' to 'close_window' in the jQuery selector. Signed-off-by: Katrin Fischer --- 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 2c934936d3..6dd9d150fa 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.5