Allow users to edit events in all views

This commit is contained in:
Alex Tselegidis 2024-04-26 16:41:38 +02:00
parent 6576a9207d
commit a2ba87256d

View file

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