|
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() { |
15 |
function sco_init() { |
| 15 |
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",[% SelfCheckTimeout %]); |
16 |
setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",[% SelfCheckTimeout %]); |
| 16 |
} |
17 |
} |
|
Lines 28-34
function checkout_confirm(patronid) {
Link Here
|
| 28 |
var barcode = $("#barcode").val(); |
29 |
var barcode = $("#barcode").val(); |
| 29 |
// alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'"); |
30 |
// alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'"); |
| 30 |
if (! barcode) { dofocus(); return false; } // no barcode |
31 |
if (! barcode) { dofocus(); return false; } // no barcode |
| 31 |
if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode |
32 |
if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode |
| 32 |
window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
33 |
window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
| 33 |
return false; |
34 |
return false; |
| 34 |
} |
35 |
} |
|
Lines 90-96
$(document).ready(function() {
Link Here
|
| 90 |
//]]> |
91 |
//]]> |
| 91 |
$(document).ready(function(){ |
92 |
$(document).ready(function(){ |
| 92 |
$("#logout_form").submit(function(){ |
93 |
$("#logout_form").submit(function(){ |
| 93 |
if(confirm("Would you like to print a receipt?")){ |
94 |
if(confirm(_("Would you like to print a receipt?"))){ |
| 94 |
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); |
95 |
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); |
| 95 |
} |
96 |
} |
| 96 |
return true; |
97 |
return true; |
| 97 |
- |
|
|