... | @@ -68,7 +68,15 @@ function bindDateTimePickers() { |
... | @@ -68,7 +68,15 @@ function bindDateTimePickers() { |
|
altFormat: 'F J (D), Y - h:i:S K',
|
|
altFormat: 'F J (D), Y - h:i:S K',
|
|
dateFormat: 'Z' // Y-m-d H:i
|
|
dateFormat: 'Z' // Y-m-d H:i
|
|
})
|
|
})
|
|
})
|
|
});
|
|
|
|
|
|
|
|
[...document.querySelectorAll('[data-type="date"]')].forEach((date) => {
|
|
|
|
flatpickr(date, {
|
|
|
|
altInput: true,
|
|
|
|
altFormat: "F j, Y",
|
|
|
|
dateFormat: "Y-m-d"
|
|
|
|
})
|
|
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
document.addEventListener("turbolinks:load", function () {
|
|
document.addEventListener("turbolinks:load", function () {
|
... | | ... | |