From 663d5af725644956073c75abe4cbfb345fec9be5 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 2 Feb 2021 12:46:49 -0500 Subject: [PATCH] Lp 1913219: Use window.open for staff catalog edit link To avoid the "Scripts may close only the windows that were opened by them" console message in Chrome 88, and a similar message in Firefox 84, when clicking "Save & Exit" in the Volume/Copy editor of the AngularJS staff client after opening it via the "edit" link in the copy table of the TT OPAC record summary, we use an onclick handler with window.open instead of a standard href in the edit anchor. Signed-off-by: Jason Stephenson --- Open-ILS/src/templates/opac/parts/record/copy_table.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index 9d126f6444..9764d05142 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -117,7 +117,7 @@ END; # FOREACH bib [% IF ctx.has_perm('UPDATE_COPY', copy_info.circ_lib) OR ctx.has_perm('UPDATE_COPY', copy_info.call_number_owning_lib) %] | - [% l('edit') %] + [% l('edit') %] [% END %] [% ELSE %]