mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Do not allow users to enable the Google Sync if "all" is selected
This commit is contained in:
parent
a9e7cea12a
commit
792e0545e8
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ App.Utils.CalendarDefaultView = (function () {
|
|||
*/
|
||||
$selectFilterItem.on('change', () => {
|
||||
// If current value is service, then the sync buttons must be disabled.
|
||||
if ($selectFilterItem.find('option:selected').attr('type') === FILTER_TYPE_SERVICE) {
|
||||
if ($selectFilterItem.find('option:selected').attr('type') === FILTER_TYPE_SERVICE || $selectFilterItem.val() === 'all') {
|
||||
$('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', true);
|
||||
fullCalendar.setOption('selectable', false);
|
||||
fullCalendar.setOption('editable', false);
|
||||
|
|
Loading…
Reference in a new issue