Allow users to edit events in all views

This commit is contained in:
Alex Tselegidis 2024-04-26 16:41:38 +02:00
parent 6e8778919e
commit d8845eca23

View file

@ -303,12 +303,8 @@ App.Utils.CalendarDefaultView = (function () {
$selectFilterItem.val() === 'all'
) {
$('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', true);
fullCalendar.setOption('selectable', false);
fullCalendar.setOption('editable', false);
} else {
$('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', false);
fullCalendar.setOption('selectable', true);
fullCalendar.setOption('editable', true);
const providerId = $selectFilterItem.val();