Skip to content
Snippets Groups Projects
Commit 81cae503 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

set minimum date for datepicker and fullcalendar instances to 1970-01-01, re #2076

Merge request studip/studip!1906
parent 8ffc7cc8
No related branches found
No related tags found
No related merge requests found
...@@ -355,6 +355,9 @@ class Fullcalendar ...@@ -355,6 +355,9 @@ class Fullcalendar
}, },
minTime: '08:00:00', minTime: '08:00:00',
maxTime: '20:00:00', maxTime: '20:00:00',
validRange: {
start: '1970-01-01'
},
height: 'auto', height: 'auto',
contentHeight: 'auto', contentHeight: 'auto',
firstDay: 1, firstDay: 1,
......
...@@ -490,7 +490,8 @@ import eventBus from "./lib/event-bus"; ...@@ -490,7 +490,8 @@ import eventBus from "./lib/event-bus";
if (value !== instance.lastVal) { if (value !== instance.lastVal) {
$(this).change(); $(this).change();
} }
} },
minDate: new Date(1970, 0)
}; };
$.datepicker.setDefaults({ $.datepicker.setDefaults({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment