From a6ad7b8cc5116b4c4713031a2d23279d1aa987fd Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 10 Mar 2011 21:15:35 +0000 Subject: [PATCH] See Changelog Monotone-Parent: b7e9891a078226bf2611b1f6b38c2ef5495ef405 Monotone-Revision: 9581875f8ebe918c0b36b403e179aa8ee5bbdbc3 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-03-10T21:15:35 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/WebServerResources/UIxContactEditor.js | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21fa1e96a..a469fb996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-03-10 Francis Lachapelle + * UI/WebServerResources/UIxContactEditor.js (initEditorForm): + the input category field doesn't appear if the card is + read-only. Adjusted the code accordingly. + * UI/WebServerResources/ContactsUI.js (onCategoriesMenuItemCallback): new callback that refreshes the displayed card when a category is added or removed. diff --git a/UI/WebServerResources/UIxContactEditor.js b/UI/WebServerResources/UIxContactEditor.js index 7b79a3bee..1d0755d65 100644 --- a/UI/WebServerResources/UIxContactEditor.js +++ b/UI/WebServerResources/UIxContactEditor.js @@ -296,8 +296,10 @@ function initEditorForm() { } var emptyCategory = $("emptyCategory"); - emptyCategory.tabIndex = 10000; - emptyCategory.observe("click", onEmptyCategoryClick); -} + if (emptyCategory) { + emptyCategory.tabIndex = 10000; + emptyCategory.observe("click", onEmptyCategoryClick); + } +} document.observe("dom:loaded", initEditorForm);