Lp 1913219: Use window.open for staff catalog edit link collab/dyrcona/lp1913219-staffcatalog-edit-link-repair
authorJason Stephenson <jason@sigio.com>
Tue, 2 Feb 2021 17:46:49 +0000 (12:46 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 2 Feb 2021 17:46:49 +0000 (12:46 -0500)
commit2c81354d71738bddff535819a32ef8b36feedf95
tree866374bb4e7d343401e36c42f0604b982e5b352a
parent43a802ae2c56c9342bfd3a6a4556292d00760d3e
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 <jason@sigio.com>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2