Removed dead code, support for adding calendar categories, disabled unused tab

This commit is contained in:
Ludovic Marcotte
2015-03-20 10:35:15 -04:00
committed by Francis Lachapelle
parent a787521977
commit 56763e1aca
3 changed files with 22 additions and 42 deletions
@@ -76,6 +76,12 @@
$scope.preferences = statePreferences;
$scope.addCalendarCategory = function() {
var color = {"": "#000"};
$scope.preferences.defaults.SOGoCalendarCategories.push("");
$scope.preferences.defaults.SOGoCalendarCategoriesColors.push(color);
}
$scope.removeCalendarCategory = function(index) {
var key = $scope.preferences.defaults.SOGoCalendarCategories[index];
$scope.preferences.defaults.SOGoCalendarCategories.splice(index, 1);