mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix datetimepicker annoyances
This commit is contained in:
@@ -122,6 +122,7 @@ $(function () {
|
||||
});
|
||||
|
||||
$("#ajaxerr").on("click", ".ajaxerr-close", ajaxErrDialog.hide);
|
||||
moment.locale($("body").attr("data-datetimelocale"));
|
||||
|
||||
$(".datetimepicker").each(function() {
|
||||
$(this).datetimepicker({
|
||||
@@ -141,6 +142,9 @@ $(function () {
|
||||
close: 'fa fa-remove'
|
||||
}
|
||||
});
|
||||
if (!$(this).val()) {
|
||||
$(this).data("DateTimePicker").viewDate(moment().hour(0).minute(0).second(0));
|
||||
}
|
||||
});
|
||||
|
||||
$(".datepickerfield").each(function() {
|
||||
|
||||
Reference in New Issue
Block a user