From 85f9c46cc25ed129dce9e22444743c5ff032cb63 Mon Sep 17 00:00:00 2001 From: "Berend.Cornelius%sun.com" Date: Tue, 26 Feb 2008 10:27:52 +0000 Subject: [PATCH] Bug 402534-Provide a default set of categories;patch=ssitter;r=berend git-svn-id: svn://10.0.0.236/trunk@246520 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/base/content/preferences/categories.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/calendar/base/content/preferences/categories.js b/mozilla/calendar/base/content/preferences/categories.js index 643a575d321..7fc8a87f1fc 100644 --- a/mozilla/calendar/base/content/preferences/categories.js +++ b/mozilla/calendar/base/content/preferences/categories.js @@ -67,6 +67,13 @@ var gCategoriesPane = { } var categories = document.getElementById("calendar.categories.names").value; + + // If no categories are configured load a default set from properties file + if (!categories || categories == "") { + categories = calGetString("categories", "categories"); + document.getElementById("calendar.categories.names").value = categories; + } + gCategoryList = categoriesStringToArray(categories); // When categories is empty, split returns an array containing one empty