Skip to content
Snippets Groups Projects
Commit 2700db6d authored by Rasmus Fuhse's avatar Rasmus Fuhse Committed by Jan-Hendrik Willms
Browse files

Resolve "Datetimepicker ist nur noch datepicker ohne time."

Closes #3104

Merge request studip/studip!2090
parent cd182a18
No related branches found
No related tags found
No related merge requests found
......@@ -279,13 +279,13 @@ import eventBus from "./lib/event-bus.ts";
$(this.selector).filter(function () {
return $(this).data('datetime-picker-init') === undefined;
}).each(function () {
const dataOptions = $(this).data().datePicker;
const dataOptions = $(this).data().datetimePicker;
const options = {};
if (dataOptions?.disable_holidays === true) {
options.beforeShowDay = disableHolidaysBeforeShow;
}
$(this).data('date-picker-init', true).datepicker(options);
$(this).data('date-picker-init', true).datetimepicker(options);
});
},
// Apply registered handlers. Take care: This happens upon before a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment