[feat]Add valid date range to fullcalendar

This commit is contained in:
Jimmy 2021-04-30 19:06:50 +08:00 committed by CactusPuppy
parent 4438b78069
commit 29b7f057c7
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,10 @@ $( document ).ready(function() {
allDaySlot: false,
slotMinTime: fullcalData.data('startHour') + ':00:00',
slotMaxTime: fullcalData.data('endHour') + ':00:00',
validRange: {
start: fullcalData.data('startDate'),
end: fullcalData.data('endDate')
},
timeZone: 'UTC', // TODO: Events are stored in conference's timezone implicitly (UTC+0) in the database
initialDate: fullcalData.data('day'),
initialView: 'resourceTimeGridDay',