Lines 11-16
Link Here
|
11 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script> |
11 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script> |
12 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
12 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
13 |
<script type="text/javascript">//<![CDATA[ |
13 |
<script type="text/javascript">//<![CDATA[ |
|
|
14 |
function _(s) { return s; } // dummy function for gettext |
14 |
function sco_init(valid_session) { |
15 |
function sco_init(valid_session) { |
15 |
if (valid_session == 1) { |
16 |
if (valid_session == 1) { |
16 |
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",[% SelfCheckTimeout %]); |
17 |
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",[% SelfCheckTimeout %]); |
Lines 30-42
function checkout_confirm(patronid) {
Link Here
|
30 |
var barcode = $("#barcode").val(); |
31 |
var barcode = $("#barcode").val(); |
31 |
// alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'"); |
32 |
// alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'"); |
32 |
if (! barcode) { dofocus(); return false; } // no barcode |
33 |
if (! barcode) { dofocus(); return false; } // no barcode |
33 |
if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode |
34 |
if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode |
34 |
window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
35 |
window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
35 |
return false; |
36 |
return false; |
36 |
} |
37 |
} |
37 |
if (this.valid_session == 0) { |
38 |
if (this.valid_session === 0) { |
38 |
// probably should force logout like above ? --atz 6/09 |
39 |
// probably should force logout like above ? --atz 6/09 |
39 |
if (confirm('Session has expired. Click \'OK\' to continue processing this item. Click Cancel if you are not ' + patronid)){ |
40 |
if (confirm(_("Session has expired. Click 'OK' to continue processing this item. Click Cancel if you are not ") + patronid)){ |
40 |
this.op.value='logout'; |
41 |
this.op.value='logout'; |
41 |
this.patronid.value=''; |
42 |
this.patronid.value=''; |
42 |
} |
43 |
} |
Lines 100-106
$(document).ready(function() {
Link Here
|
100 |
//]]> |
101 |
//]]> |
101 |
$(document).ready(function(){ |
102 |
$(document).ready(function(){ |
102 |
$("#logout_form").submit(function(){ |
103 |
$("#logout_form").submit(function(){ |
103 |
if(confirm("Would you like to print a receipt?")){ |
104 |
if(confirm(_("Would you like to print a receipt?"))){ |
104 |
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); |
105 |
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); |
105 |
} |
106 |
} |
106 |
return true; |
107 |
return true; |
107 |
- |
|
|