Bugzilla – Attachment 95664 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), 919 bytes, created by
Jonathan Druart
on 2019-11-21 15:31:03 UTC
(
hide
)
Description:
Bug 24061: Close the window after the page has been printed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-21 15:31:03 UTC
Size:
919 bytes
patch
obsolete
>From 5f4400c0a12eae846bb9928d43ea50ede1f85236 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 > >--- > 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..6193be8902 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.onafterprint = 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