Bugzilla – Attachment 95623 Details for
Bug 24061
Print List (opac-shelves.pl) broken in Chrome
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24061: Close the window after the page has been printed
Bug-24061-Close-the-window-after-the-page-has-been.patch (text/plain), 969 bytes, created by
Lucas Gass (lukeg)
on 2019-11-20 17:44:18 UTC
(
hide
)
Description:
Bug 24061: Close the window after the page has been printed
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2019-11-20 17:44:18 UTC
Size:
969 bytes
patch
obsolete
>From 0a4dd3495c47401da54f098407c6c402f1441d8c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Nov 2019 09:19:51 +0100 >Subject: [PATCH] Bug 24061: Close the window after the page has been printed > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >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 c1d273f66e..5ed3c4c37c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -966,7 +966,9 @@ $(function() { > > [% IF print %] > window.print(); >- setTimeout('window.close()', 1); >+ window.onfocus = function () { >+ window.close(); >+ } > [% END %] > > AdjustRemark(); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24061
:
95589
|
95591
|
95623
|
95664
|
95715
|
96971
|
97597
|
97598