Lines 8-14
Link Here
|
8 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
|
9 |
|
10 |
[% INCLUDE 'calendar.inc' %] |
10 |
[% INCLUDE 'calendar.inc' %] |
11 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
11 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
12 |
|
12 |
|
13 |
<script type="text/javascript"> |
13 |
<script type="text/javascript"> |
14 |
//<![CDATA[ |
14 |
//<![CDATA[ |
Lines 19-27
function Dopop(link) {
Link Here
|
19 |
$(document).ready(function () { |
19 |
$(document).ready(function () { |
20 |
$("#return_date_override").datetimepicker({ |
20 |
$("#return_date_override").datetimepicker({ |
21 |
onClose: function(dateText, inst) { $("#barcode").focus(); }, |
21 |
onClose: function(dateText, inst) { $("#barcode").focus(); }, |
|
|
22 |
defaultDate: -1, |
22 |
hour: 23, |
23 |
hour: 23, |
23 |
minute: 59 |
24 |
minute: 59, |
|
|
25 |
maxDate: 0 |
24 |
}); |
26 |
}); |
|
|
27 |
$("#return_date_override").on("blur", function() { |
28 |
check_valid_return_date(); |
29 |
}); |
30 |
$("#checkin-form").submit(function( event ) { |
31 |
if ( !check_valid_return_date() ) { |
32 |
event.preventDefault(); |
33 |
} |
34 |
}); |
35 |
|
36 |
function check_valid_return_date() { |
37 |
if ( $("#return_date_override").val() ) { |
38 |
var datetime = DateTime_from_syspref( $("#return_date_override").val() ); |
39 |
var now = new Date(); |
40 |
if ( !datetime || datetime > now ) { |
41 |
alert("Invalid return date/time!"); |
42 |
$("#return_date_override").val("") |
43 |
return false; |
44 |
} |
45 |
} |
46 |
return true; |
47 |
} |
48 |
|
25 |
$("#exemptcheck").change(function () { |
49 |
$("#exemptcheck").change(function () { |
26 |
if (this.checked == true) { |
50 |
if (this.checked == true) { |
27 |
$("#barcode").addClass("alert"); |
51 |
$("#barcode").addClass("alert"); |
Lines 407-413
$(document).ready(function () {
Link Here
|
407 |
</div> |
431 |
</div> |
408 |
</div> |
432 |
</div> |
409 |
<div class="yui-g"> |
433 |
<div class="yui-g"> |
410 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
434 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
411 |
<div class="yui-u first"> |
435 |
<div class="yui-u first"> |
412 |
<fieldset> |
436 |
<fieldset> |
413 |
<legend>Check in</legend> |
437 |
<legend>Check in</legend> |
414 |
- |
|
|