mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
BugFix agendaDay View
This commit is contained in:
parent
721df5833d
commit
684bb22a38
1 changed files with 34 additions and 34 deletions
|
@ -889,6 +889,8 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
$calendar.fullCalendar('renderEvent', unavailablePeriod, false);
|
||||
});
|
||||
|
||||
// Non-working day.
|
||||
if (workingPlan[selectedDayName] == null) {
|
||||
// Extra working plan day.
|
||||
var selectedDay = $calendar.fullCalendar('getView').intervalStart.clone();
|
||||
selectedDay.locale('en');
|
||||
|
@ -910,10 +912,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
};
|
||||
|
||||
$calendar.fullCalendar('renderEvent', extraPeriod, false);
|
||||
}
|
||||
|
||||
// Non-working day.
|
||||
if (workingPlan[selectedDayName] == null) {
|
||||
} else {
|
||||
unavailablePeriod = {
|
||||
title: EALang.not_working,
|
||||
start: $calendar.fullCalendar('getView').intervalStart.clone(),
|
||||
|
@ -928,6 +927,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
|
||||
return; // Go to next loop.
|
||||
}
|
||||
}
|
||||
|
||||
// Add unavailable period before work starts.
|
||||
var calendarDateStart = moment($calendar.fullCalendar('getView').start.format('YYYY-MM-DD') + ' 00:00:00');
|
||||
|
|
Loading…
Reference in a new issue