From 779b291281a74126a22afcb189824b43e404babe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien?= Date: Sat, 9 May 2020 23:29:16 +0200 Subject: [PATCH] Fix disabled bug with insert dropdown in backend. --- application/views/backend/calendar.php | 2 +- assets/js/backend_calendar_default_view.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/views/backend/calendar.php b/application/views/backend/calendar.php index a4919af9..e443c125 100755 --- a/application/views/backend/calendar.php +++ b/application/views/backend/calendar.php @@ -73,7 +73,7 @@ - diff --git a/assets/js/backend_calendar_default_view.js b/assets/js/backend_calendar_default_view.js index e8b43883..c30a6178 100755 --- a/assets/js/backend_calendar_default_view.js +++ b/assets/js/backend_calendar_default_view.js @@ -224,11 +224,11 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; $('#select-filter-item').change(function () { // If current value is service, then the sync buttons must be disabled. if ($('#select-filter-item option:selected').attr('type') === FILTER_TYPE_SERVICE) { - $('#google-sync, #enable-sync, #insert-appointment, #insert-unavailable').prop('disabled', true); + $('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', true); $('#calendar').fullCalendar('option', 'selectable', false); $('#calendar').fullCalendar('option', 'editable', false); } else { - $('#google-sync, #enable-sync, #insert-appointment, #insert-unavailable').prop('disabled', false); + $('#google-sync, #enable-sync, #insert-appointment, #insert-dropdown').prop('disabled', false); $('#calendar').fullCalendar('option', 'selectable', true); $('#calendar').fullCalendar('option', 'editable', true);