Lp 1913219: Use window.open for staff catalog edit link
authorJason Stephenson <jason@sigio.com>
Tue, 2 Feb 2021 17:46:49 +0000 (12:46 -0500)
committerJason Stephenson <jason@sigio.com>
Wed, 10 Feb 2021 20:15:40 +0000 (15:15 -0500)
commit21314b97649db51fb16d22f30e0915d391ea5444
treecf8cb4895d50b9982f98182e889192ea66d060b1
parent90a3c1d1664e079780db4177ae784b6f2e405460
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>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2