View | Details | Raw Unified | Return to bug 10376
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt (-3 / +17 lines)
Lines 9-18 Link Here
9
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
9
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
10
    <script type="text/javascript">
10
    <script type="text/javascript">
11
    //<![CDATA[
11
    //<![CDATA[
12
    var IEprint=0;
12
    $(document).ready(function(){
13
    $(document).ready(function(){
13
        print();
14
        if(navigator.appName.indexOf("Internet Explorer")>-1) {
14
        location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]";
15
        // too bad that we need this trick to make printing work in IE...
16
            window.setTimeout(function () {IE_Print_Page();}, 500);
17
        }
18
        else {
19
            print();
20
            location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]";
21
        }
15
    });
22
    });
23
    function IE_Print_Page() {
24
        if(IEprint==0) {
25
            IEprint++;
26
            window.print(); // IE needs the window object here
27
            window.onfocus=function() { // focus will not work in Firefox a.o.
28
                location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]"; }
29
        }
30
    }
16
    //]]>
31
    //]]>
17
    </script>
32
    </script>
18
<style type="text/css">
33
<style type="text/css">
19
- 

Return to bug 10376