From 713325b10235122c10f92c906353a42d009e4c89 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 18 Aug 2011 03:31:04 +0000 Subject: [PATCH] See ChangeLog. Monotone-Parent: 356354346ab317a36d53e8cff4567bfe338fdd72 Monotone-Revision: 87aa0e7fcb103fe297872cf18c946d66064eb96e Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-08-18T03:31:04 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 9 +++++++++ UI/WebServerResources/UIxContactEditor.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6643b0761..a49c9f952 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-08-18 Francis Lachapelle + + * UI/WebServerResources/UIxContactEditor.js + (regenerateCategoriesMenu): register the onMenuClickHandler + function on the mouse down event instead of the click event, since + the contextual menu is hidden on the mouse down event. This fixes + the bug where a predefined category could never be selected from + the combo box. + 2011-08-15 Wolfgang Sourdeau * OpenChange/MAPIStoreMailFolder.m diff --git a/UI/WebServerResources/UIxContactEditor.js b/UI/WebServerResources/UIxContactEditor.js index 4b0d49a11..cca21ac5e 100644 --- a/UI/WebServerResources/UIxContactEditor.js +++ b/UI/WebServerResources/UIxContactEditor.js @@ -243,7 +243,7 @@ function regenerateCategoriesMenu() { var entry = createElement("li"); entry.label = label; entry.menuCallback = onCategoryMenuEntryClick; - entry.observe("click", onMenuClickHandler); + entry.on("mousedown", onMenuClickHandler); entry.appendChild(document.createTextNode(label)); list.appendChild(entry); }