From 25ef4c87c99d0bf9b010f78d49a0fdabd7ceb893 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 22 Nov 2019 10:16:15 +0100 Subject: [PATCH] Bug 24061: close after timeout if onafterprint no supported Not supported on Chrome < 63 https://www.w3schools.com/tags/ev_onafterprint.asp --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 6193be8902..6c77951533 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -969,6 +969,7 @@ $(function() { window.onafterprint = function () { window.close(); } + setTimeout('window.close()', 1000); // Hack for Chrome < 63 [% END %] AdjustRemark(); -- 2.11.0