mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 01:43:06 +03:00
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
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue