From affa6ba65610bde6c440dacddb1ec88ad009fc10 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 28 Apr 2015 15:22:20 -0400 Subject: [PATCH] (fix) new calendar category now showing color too --- UI/WebServerResources/js/PreferencesUI.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/PreferencesUI.js b/UI/WebServerResources/js/PreferencesUI.js index cd23565f2..935730d18 100644 --- a/UI/WebServerResources/js/PreferencesUI.js +++ b/UI/WebServerResources/js/PreferencesUI.js @@ -78,9 +78,8 @@ $scope.preferences = statePreferences; $scope.addCalendarCategory = function() { - var color = {"New category": "#aaa"}; + $scope.preferences.defaults.SOGoCalendarCategoriesColors["New category"] = "#aaa"; $scope.preferences.defaults.SOGoCalendarCategories.push("New category"); - $scope.preferences.defaults.SOGoCalendarCategoriesColors.push(color); } $scope.removeCalendarCategory = function(index) {