From 12c1d9811be2e937fc8de66f9214f231bd2fac01 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Wed, 17 May 2006 17:56:12 +0000 Subject: [PATCH] Bug #333510 --> contacts sidebar comes up empty. regression caused by 321254. sr=bienvenu --- mail/components/addrbook/content/abContactsPanel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mail/components/addrbook/content/abContactsPanel.js b/mail/components/addrbook/content/abContactsPanel.js index e7a328947e73..0f332b2ddfdd 100644 --- a/mail/components/addrbook/content/abContactsPanel.js +++ b/mail/components/addrbook/content/abContactsPanel.js @@ -137,7 +137,12 @@ function AddressBookMenuListChange() function AbPanelOnComposerClose() { CloseAbView(); - gSearchInput.value = ""; + onClearSearch(); +} + +function AbPanelOnComposerReOpen() +{ + SetAbView(GetSelectedDirectory(), true); } function AbPanelLoad() @@ -158,6 +163,7 @@ function AbPanelLoad() Components.interfaces.nsIAddrBookSession.changed); parent.document.getElementById("msgcomposeWindow").addEventListener('compose-window-close', AbPanelOnComposerClose, true); + parent.document.getElementById("msgcomposeWindow").addEventListener('compose-window-reopen', AbPanelOnComposerReOpen, true); gSearchInput = document.getElementById("searchInput"); }