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', () => {
|
$selectFilterItem.on('change', () => {
|
||||||
// If current value is service, then the sync buttons must be disabled.
|
// 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);
|
$('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', true);
|
||||||
fullCalendar.setOption('selectable', false);
|
fullCalendar.setOption('selectable', false);
|
||||||
fullCalendar.setOption('editable', false);
|
fullCalendar.setOption('editable', false);
|
||||||
|
|
Loading…
Reference in a new issue