Lines 502-508
Link Here
|
502 |
[% MACRO jsinclude BLOCK %] |
502 |
[% MACRO jsinclude BLOCK %] |
503 |
[% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] |
503 |
[% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] |
504 |
[% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %] |
504 |
[% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %] |
|
|
505 |
[% Asset.js("lib/dayjs/plugin/customParseFormat.js") | $raw %] |
505 |
<script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script> |
506 |
<script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script> |
|
|
507 |
<script>dayjs.extend(window.dayjs_plugin_customParseFormat)</script> |
506 |
[% INCLUDE 'calendar.inc' %] |
508 |
[% INCLUDE 'calendar.inc' %] |
507 |
<script> |
509 |
<script> |
508 |
let pickups = [% To.json(curbside_pickups.unblessed) | $raw %]; |
510 |
let pickups = [% To.json(curbside_pickups.unblessed) | $raw %]; |
Lines 538-544
Link Here
|
538 |
|
540 |
|
539 |
var currentDate = $(this).val(); |
541 |
var currentDate = $(this).val(); |
540 |
|
542 |
|
541 |
let selectedDate = dayjs(currentDate); |
543 |
let selectedDate = dayjs(currentDate, get_dateformat_str(dateformat_pref).toUpperCase()); |
542 |
|
544 |
|
543 |
let pickupSlots = []; |
545 |
let pickupSlots = []; |
544 |
let available_count = 0; |
546 |
let available_count = 0; |