mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-01 09:00:03 +01:00
* fix some conditional display bugs in crowdfund * bump flatpickr * make clear button show up even with flatpickt fake input ui * update uis to specify date value in specific format and use custom format for flatpickr display and use moment to parse date instead * fix remaining public ui date issues
26 lines
687 B
JavaScript
26 lines
687 B
JavaScript
$(document).ready(function() {
|
|
|
|
$(".richtext").summernote({
|
|
minHeight: 300
|
|
});
|
|
$(".datetime").each(function () {
|
|
var element = $(this);
|
|
var min = element.attr("min");
|
|
var max = element.attr("max");
|
|
var defaultDate = element.attr("value");
|
|
element.flatpickr({
|
|
enableTime: true,
|
|
minDate: min,
|
|
maxDate: max,
|
|
defaultDate: defaultDate,
|
|
dateFormat: 'Z',
|
|
altInput: true,
|
|
altFormat: 'J F Y H:i',
|
|
time_24hr: true,
|
|
parseDate: function (date) {
|
|
return moment(date).toDate();
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|