From 174accdb23cd7332aa9836f93064b6346a306041 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 23 Apr 2015 09:47:51 -0400 Subject: [PATCH] Display category color --- UI/Templates/PreferencesUI/UIxPreferences.wox | 34 +++++++++---------- UI/WebServerResources/js/PreferencesUI.js | 4 +-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/UI/Templates/PreferencesUI/UIxPreferences.wox b/UI/Templates/PreferencesUI/UIxPreferences.wox index 9eab4d681..f3ced50b6 100644 --- a/UI/Templates/PreferencesUI/UIxPreferences.wox +++ b/UI/Templates/PreferencesUI/UIxPreferences.wox @@ -405,23 +405,23 @@ aria-controls="calendarCategories-content" label:label="Categories"> - - -
- - - - -
-
-
-
- + + + + + + + +
+
+
+
+
diff --git a/UI/WebServerResources/js/PreferencesUI.js b/UI/WebServerResources/js/PreferencesUI.js index 7ca26b0a2..b1e1e81ea 100644 --- a/UI/WebServerResources/js/PreferencesUI.js +++ b/UI/WebServerResources/js/PreferencesUI.js @@ -78,8 +78,8 @@ $scope.preferences = statePreferences; $scope.addCalendarCategory = function() { - var color = {"": "#000"}; - $scope.preferences.defaults.SOGoCalendarCategories.push(""); + var color = {"New category": "#aaa"}; + $scope.preferences.defaults.SOGoCalendarCategories.push("New category"); $scope.preferences.defaults.SOGoCalendarCategoriesColors.push(color); }