Bugzilla – Attachment 18464 Details for
Bug 10376
Printing cart does not work under IE9
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10376: Printing cart does not work under IE9
Bug-10376-Printing-cart-does-not-work-under-IE9.patch (text/plain), 2.12 KB, created by
Marcel de Rooy
on 2013-05-29 12:34:06 UTC
(
hide
)
Description:
Bug 10376: Printing cart does not work under IE9
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-05-29 12:34:06 UTC
Size:
2.12 KB
patch
obsolete
>From ed84c471e34821e3cc92991c4155dfec1aacc48b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 29 May 2013 14:24:05 +0200 >Subject: [PATCH] Bug 10376: Printing cart does not work under IE9 >Content-Type: text/plain; charset=utf-8 > >Test plan: >1) Test with Firefox (or any other browser except IE): >Add biblio to cart >Go to Cart and click Print >Does the Cart window come back to its original state after confirm/cancel Print? >2) Test with Internet Explorer (I used IE9; testing another version is fine) >Do the same as above. Is behavior now more or less the same? >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 19 +++++++++++++++++-- > 1 files changed, 17 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >index 09993af..3babfb8 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >@@ -9,10 +9,25 @@ > <script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script> > <script type="text/javascript"> > //<![CDATA[ >+ var IEprint=0; > $(document).ready(function(){ >- print(); >- location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]"; >+ if(navigator.appName.indexOf("Internet Explorer")>-1) { >+ // too bad that we need this trick to make printing work in IE... >+ window.setTimeout(function () {IE_Print_Page();}, 500); >+ } >+ else { >+ print(); >+ location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]"; >+ } > }); >+ function IE_Print_Page() { >+ if(IEprint==0) { >+ IEprint++; >+ window.print(); // IE needs the window object here >+ window.onfocus=function() { // focus will not work in Firefox a.o. >+ location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]"; } >+ } >+ } > //]]> > </script> > <style type="text/css"> >-- >1.7.7.6
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 10376
:
18464
|
18723
|
19625