|
Lines 32-38
Link Here
|
| 32 |
[% Asset.js('js/Gettext.js') | $raw %] |
32 |
[% Asset.js('js/Gettext.js') | $raw %] |
| 33 |
[% Asset.js('js/i18n.js') | $raw %] |
33 |
[% Asset.js('js/i18n.js') | $raw %] |
| 34 |
</head> |
34 |
</head> |
| 35 |
<body id="sco_main" class="sco" onload="dofocus();" onunload="mungeHistory();"> |
35 |
<body id="sco_main" class="sco"> |
| 36 |
[% INCLUDE 'masthead-sco.inc' %] |
36 |
[% INCLUDE 'masthead-sco.inc' %] |
| 37 |
|
37 |
|
| 38 |
<div class="main"> |
38 |
<div class="main"> |
|
Lines 241-247
Link Here
|
| 241 |
|
241 |
|
| 242 |
[% IF ( validuser ) %] |
242 |
[% IF ( validuser ) %] |
| 243 |
<div id="newcheckout" class="sco_entry"> |
243 |
<div id="newcheckout" class="sco_entry"> |
| 244 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid | html %]');"> |
244 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl"> |
| 245 |
<legend><h2> |
245 |
<legend><h2> |
| 246 |
[% IF ( Koha.Preference('SCOAllowCheckin') ) %] |
246 |
[% IF ( Koha.Preference('SCOAllowCheckin') ) %] |
| 247 |
<span>Check out, return, or renew an item:</span> |
247 |
<span>Check out, return, or renew an item:</span> |
|
Lines 499-504
Link Here
|
| 499 |
} |
499 |
} |
| 500 |
[% END %] |
500 |
[% END %] |
| 501 |
|
501 |
|
|
|
502 |
$( window ).on( "load", function() { |
| 503 |
dofocus(); |
| 504 |
}); |
| 505 |
|
| 506 |
$( window ).on( "unload", function() { |
| 507 |
mungeHistory(); |
| 508 |
}); |
| 502 |
|
509 |
|
| 503 |
$(document).ready(function() { |
510 |
$(document).ready(function() { |
| 504 |
dofocus(); |
511 |
dofocus(); |
|
Lines 533-538
Link Here
|
| 533 |
|
540 |
|
| 534 |
return true; |
541 |
return true; |
| 535 |
}); |
542 |
}); |
|
|
543 |
|
| 544 |
$("#scan_form").on("submit", function(){ |
| 545 |
return checkout_confirm('[% patronid | html %]'); |
| 546 |
}); |
| 536 |
}); |
547 |
}); |
| 537 |
|
548 |
|
| 538 |
</script> |
549 |
</script> |
| 539 |
- |
|
|