From d3e86800b5b5196dda210e115a96ad48addbd0f2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 14 Feb 2016 14:08:51 +0100 Subject: [PATCH] Corrected the class that needed to be removed from the sync-button after the user disables the syncing. --- src/assets/js/backend_calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/js/backend_calendar.js b/src/assets/js/backend_calendar.js index d6d11db4..a042c97d 100644 --- a/src/assets/js/backend_calendar.js +++ b/src/assets/js/backend_calendar.js @@ -291,7 +291,7 @@ var BackendCalendar = { $('#enable-sync span:eq(1)').text(EALang['disable_sync']); $('#google-sync').prop('disabled', false); } else { - $('#enable-sync').removeClass('btn-success enabled'); + $('#enable-sync').removeClass('btn-danger enabled'); $('#enable-sync span:eq(1)').text(EALang['enable_sync']); $('#google-sync').prop('disabled', true); } @@ -776,7 +776,7 @@ var BackendCalendar = { BackendCalendar.disableProviderSync(provider['id']); - $('#enable-sync').removeClass('btn-success enabled'); + $('#enable-sync').removeClass('btn-danger enabled'); $('#enable-sync span:eq(1)').text(EALang['enable_sync']); $('#google-sync').prop('disabled', true); $('#select-filter-item option:selected').attr('google-sync', 'false');