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
* day view calendar.
*/
function _calendarDayClick(date, allDay, jsEvent, view) {
if (allDay) {
$('#calendar').fullCalendar('gotoDate', date);
function _calendarDayClick(date, jsEvent, view) {
if (!date.hasTime()) {
$('#calendar').fullCalendar('changeView', 'agendaDay');
$('#calendar').fullCalendar('gotoDate', date);
}
}