|
Lines 39-45
Link Here
|
| 39 |
[% Asset.js('js/Gettext.js') | $raw %] |
39 |
[% Asset.js('js/Gettext.js') | $raw %] |
| 40 |
[% Asset.js('js/i18n.js') | $raw %] |
40 |
[% Asset.js('js/i18n.js') | $raw %] |
| 41 |
</head> |
41 |
</head> |
| 42 |
<body id="sco_main" class="sco" onload="dofocus();" onunload="mungeHistory();"> |
42 |
<body id="sco_main" class="sco"> |
| 43 |
[% INCLUDE 'masthead-sco.inc' %] |
43 |
[% INCLUDE 'masthead-sco.inc' %] |
| 44 |
|
44 |
|
| 45 |
<div class="main"> |
45 |
<div class="main"> |
|
Lines 248-254
Link Here
|
| 248 |
|
248 |
|
| 249 |
[% IF ( validuser ) %] |
249 |
[% IF ( validuser ) %] |
| 250 |
<div id="newcheckout" class="sco_entry"> |
250 |
<div id="newcheckout" class="sco_entry"> |
| 251 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid | html %]');"> |
251 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl"> |
| 252 |
<legend><h2> |
252 |
<legend><h2> |
| 253 |
[% IF ( Koha.Preference('SCOAllowCheckin') ) %] |
253 |
[% IF ( Koha.Preference('SCOAllowCheckin') ) %] |
| 254 |
<span>Check out, return, or renew an item:</span> |
254 |
<span>Check out, return, or renew an item:</span> |
|
Lines 507-512
Link Here
|
| 507 |
} |
507 |
} |
| 508 |
[% END %] |
508 |
[% END %] |
| 509 |
|
509 |
|
|
|
510 |
$( window ).on( "load", function() { |
| 511 |
dofocus(); |
| 512 |
}); |
| 513 |
|
| 514 |
$( window ).on( "unload", function() { |
| 515 |
mungeHistory(); |
| 516 |
}); |
| 510 |
|
517 |
|
| 511 |
$(document).ready(function() { |
518 |
$(document).ready(function() { |
| 512 |
dofocus(); |
519 |
dofocus(); |
|
Lines 541-546
Link Here
|
| 541 |
|
548 |
|
| 542 |
return true; |
549 |
return true; |
| 543 |
}); |
550 |
}); |
|
|
551 |
|
| 552 |
$("#scan_form").on("submit", function(){ |
| 553 |
return checkout_confirm('[% patronid | html %]'); |
| 554 |
}); |
| 544 |
}); |
555 |
}); |
| 545 |
|
556 |
|
| 546 |
</script> |
557 |
</script> |
| 547 |
- |
|
|