|
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 %]&print=qslip"); |
93 |
window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); |
| 95 |
} |
94 |
} |
| 96 |
return true; |
95 |
return true; |
| 97 |
- |
|
|