Fix for unselectable calendar when switching from service to provider view

This commit is contained in:
oxteam 2018-05-22 23:33:34 +02:00
parent 523e260489
commit 9c2de28814

View file

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