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 <katrin.fischer@bsz-bw.de>
This commit is contained in:
Martin Renvoize 2024-04-26 07:48:52 +01:00 committed by Katrin Fischer
parent 09eb174599
commit d38735964c
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -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");
});
});