From 773aaa0f514e93183ab0cb524937e7f33cd7ef72 Mon Sep 17 00:00:00 2001 From: "mattwillis%gmail.com" Date: Wed, 5 Jul 2006 23:42:54 +0000 Subject: [PATCH] bug 342341 - hooks preference to list and handles changes. r=jminta --- calendar/base/content/preferences/categories.js | 7 +++++-- calendar/base/content/preferences/categories.xul | 4 ---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/calendar/base/content/preferences/categories.js b/calendar/base/content/preferences/categories.js index 085c30b576d..f35185f8e7a 100644 --- a/calendar/base/content/preferences/categories.js +++ b/calendar/base/content/preferences/categories.js @@ -63,14 +63,14 @@ var gCategoriesPane = { parent.backupPrefList = []; } - var categories = document.getElementById("categories").value; + var categories = document.getElementById("calendar.categories.names").value; gCategoryList = categories.split(","); this.updateCategoryList(); }, updateCategoryList: function () { gCategoryList.sort(); - document.getElementById("categories").value = gCategoryList.join(","); + document.getElementById("calendar.categories.names").value = gCategoryList.join(","); var listbox = document.getElementById("categorieslist"); listbox.clearSelection(); @@ -183,6 +183,7 @@ var gCategoriesPane = { try { categoryPrefBranch.clearUserPref(categoryNameFix); } catch (ex) { + dump("Exception caught in 'saveCategory': " + ex + "\n"); } } } @@ -212,6 +213,7 @@ var gCategoriesPane = { try { currentColor = categoryPrefBranch.getCharPref(categoryNameFix); } catch (ex) { + dump("Exception caught in 'backupData': " + ex + "\n"); currentColor = "##NEW"; } @@ -230,6 +232,7 @@ var gCategoriesPane = { try { categoryPrefBranch.clearUserPref(parent.backupPrefList[i].name); } catch (ex) { + dump("Exception caught in 'panelOnCancel': " + ex + "\n"); } } else { categoryPrefBranch.setCharPref(parent.backupPrefList[i].name, diff --git a/calendar/base/content/preferences/categories.xul b/calendar/base/content/preferences/categories.xul index 43fc586ae85..276a0aa67da 100644 --- a/calendar/base/content/preferences/categories.xul +++ b/calendar/base/content/preferences/categories.xul @@ -94,10 +94,6 @@ label="&remove.label;" oncommand="gCategoriesPane.deleteCategory()"/> -