|
Lines 930-938
Link Here
|
| 930 |
|
930 |
|
| 931 |
// On-site checkout |
931 |
// On-site checkout |
| 932 |
function toggle_onsite_checkout(){ |
932 |
function toggle_onsite_checkout(){ |
|
|
933 |
const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr; |
| 933 |
if ( $("#onsite_checkout").prop('checked') ) { |
934 |
if ( $("#onsite_checkout").prop('checked') ) { |
| 934 |
const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr; |
|
|
| 935 |
duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]"); |
935 |
duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]"); |
|
|
936 |
} else { |
| 937 |
duedatespec_fp.setDate(""); |
| 936 |
} |
938 |
} |
| 937 |
} |
939 |
} |
| 938 |
|
940 |
|
| 939 |
- |
|
|