Fix for unselectable calendar when switching from service to provider view (#483).

(cherry picked from commit 9c2de28)
This commit is contained in:
oxteam 2018-05-22 23:33:34 +02:00 committed by alext
parent 8fa38aa139
commit 3428c6552a

View file

@ -218,6 +218,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
$('#calendar').fullCalendar('option', 'editable', false); $('#calendar').fullCalendar('option', 'editable', false);
} else { } else {
$('#google-sync, #enable-sync, #insert-appointment, #insert-unavailable').prop('disabled', false); $('#google-sync, #enable-sync, #insert-appointment, #insert-unavailable').prop('disabled', false);
$('#calendar').fullCalendar('option', 'selectable', true);
$('#calendar').fullCalendar('option', 'editable', true); $('#calendar').fullCalendar('option', 'editable', true);
// If the user has already the sync enabled then apply the proper style changes. // If the user has already the sync enabled then apply the proper style changes.