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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/printslip.tt (+2 lines)
Lines 8-17 Link Here
8
[% END %]
8
[% END %]
9
9
10
<script language="javascript">
10
<script language="javascript">
11
//<![CDATA[
11
    function printThenClose() {
12
    function printThenClose() {
12
        window.print();
13
        window.print();
13
        window.close();
14
        window.close();
14
    }
15
    }
16
//]]>
15
</script>
17
</script>
16
</head>
18
</head>
17
<body id="circ_printslip" class="circ" onload="printThenClose();">
19
<body id="circ_printslip" class="circ" onload="printThenClose();">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt (-2 / +4 lines)
Lines 4-10 Link Here
4
<head>
4
<head>
5
<title> RECEIPT </title>
5
<title> RECEIPT </title>
6
6
7
<script language="JavaScript" type="text/javascript">
7
<script type="text/javascript">
8
//<![CDATA[
8
x = 0; 
9
x = 0; 
9
function callPrint()
10
function callPrint()
10
{
11
{
Lines 12-18 function callPrint() Link Here
12
      
13
      
13
     {
14
     {
14
      self.print();
15
      self.print();
15
      javascript:window.opener.location='/cgi-bin/koha/sco/sco-main.pl?logout.x=1';
16
      window.opener.location='/cgi-bin/koha/sco/sco-main.pl?logout.x=1';
16
      x = 1; 
17
      x = 1; 
17
     }
18
     }
18
}
19
}
Lines 24-29 function closeNow() Link Here
24
    setTimeout('self.close()',1000);
25
    setTimeout('self.close()',1000);
25
  }    
26
  }    
26
}
27
}
28
//]]>
27
</script> 
29
</script> 
28
30
29
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
31
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt (-4 / +2 lines)
Lines 41-47 function checkout_confirm(patronid) { Link Here
41
    var   barcode = $("#barcode").val();
41
    var   barcode = $("#barcode").val();
42
    // alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'");
42
    // alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'");
43
    if (! barcode) { dofocus(); return false; }    // no barcode
43
    if (! barcode) { dofocus(); return false; }    // no barcode
44
    if (barcode == "__KOHA_NEW_CIRC__") {   // magic barcode 
44
    if (barcode == "__KOHA_NEW_CIRC__") {   // magic barcode
45
        window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';
45
        window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';
46
        return false;
46
        return false;
47
    }
47
    }
Lines 89-96 $(document).ready(function() { Link Here
89
        ]
89
        ]
90
    }));
90
    }));
91
    $("#logout_form").submit(function(){
91
    $("#logout_form").submit(function(){
92
        clearTimeout(mainTimeout);
92
        if(confirm(_("Would you like to print a receipt?"))){
93
        if(confirm("Would you like to print a receipt?")){
94
            window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&amp;print=qslip");
93
            window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&amp;print=qslip");
95
        }
94
        }
96
        return true;
95
        return true;
97
- 

Return to bug 8033