Corrected go-to date functionality.

This commit is contained in:
alext 2017-11-02 14:11:41 +01:00
parent 35d812a550
commit 89890dab4f

View file

@ -509,10 +509,10 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
* When the user clicks on a day square on the calendar, then he will automatically be transferred to that * When the user clicks on a day square on the calendar, then he will automatically be transferred to that
* day view calendar. * day view calendar.
*/ */
function _calendarDayClick(date, allDay, jsEvent, view) { function _calendarDayClick(date, jsEvent, view) {
if (allDay) { if (!date.hasTime()) {
$('#calendar').fullCalendar('gotoDate', date);
$('#calendar').fullCalendar('changeView', 'agendaDay'); $('#calendar').fullCalendar('changeView', 'agendaDay');
$('#calendar').fullCalendar('gotoDate', date);
} }
} }