Added now indication and changed snap duration

This commit is contained in:
Alex Tselegidis 2020-12-08 09:36:46 +02:00
parent 9e116623dc
commit 0e9758372d
2 changed files with 4 additions and 2 deletions

View file

@ -1408,11 +1408,12 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
// Initialize page calendar // Initialize page calendar
$('#calendar').fullCalendar({ $('#calendar').fullCalendar({
nowIndicator: true,
defaultView: defaultView, defaultView: defaultView,
height: getCalendarHeight(), height: getCalendarHeight(),
editable: true, editable: true,
firstDay: firstWeekdayNumber, firstDay: firstWeekdayNumber,
snapDuration: '00:30:00', snapDuration: '00:15:00',
timeFormat: timeFormat, timeFormat: timeFormat,
slotLabelFormat: slotTimeFormat, slotLabelFormat: slotTimeFormat,
allDayText: EALang.all_day, allDayText: EALang.all_day,

View file

@ -697,11 +697,12 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
defaultView: 'agendaDay', defaultView: 'agendaDay',
height: getCalendarHeight(), height: getCalendarHeight(),
editable: true, editable: true,
firstDay: firstWeekdayNumber,
timeFormat: timeFormat, timeFormat: timeFormat,
slotLabelFormat: slotTimeFormat, slotLabelFormat: slotTimeFormat,
allDaySlot: true, allDaySlot: true,
columnFormat: columnFormat, columnFormat: columnFormat,
firstDay: firstWeekdayNumber,
snapDuration: '00:15:00',
header: { header: {
left: 'listDay,agendaDay', left: 'listDay,agendaDay',
center: '', center: '',