Corrected go-to date functionality.
This commit is contained in:
parent
35d812a550
commit
89890dab4f
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue