From 359bc9c89f83d42dddff650f3ba43b158f9aa1fb Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Sat, 18 Mar 2006 01:10:44 +0000 Subject: [PATCH] Fix for standalone window regression caused by bug 330198 r=IanN sr=bienvenu --- mailnews/base/resources/content/mailWindow.js | 6 ------ mailnews/base/resources/content/msgMail3PaneWindow.js | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/mailnews/base/resources/content/mailWindow.js b/mailnews/base/resources/content/mailWindow.js index 388a6daf65d..708ad069eb6 100644 --- a/mailnews/base/resources/content/mailWindow.js +++ b/mailnews/base/resources/content/mailWindow.js @@ -203,12 +203,6 @@ function CreateMailWindowGlobals() //Create datasources accountManagerDataSource = Components.classes[accountManagerDSContractID].getService(); folderDataSource = Components.classes[folderDSContractID].getService(); - - accountCentralBox = document.getElementById("accountCentralBox"); - gSearchBox = document.getElementById("searchBox"); - if (gSearchBox) - gSearchBox.collapsed = true; - GetMessagePane().collapsed = true; } function InitMsgWindow() diff --git a/mailnews/base/resources/content/msgMail3PaneWindow.js b/mailnews/base/resources/content/msgMail3PaneWindow.js index 184eb00c43b..0825403423b 100644 --- a/mailnews/base/resources/content/msgMail3PaneWindow.js +++ b/mailnews/base/resources/content/msgMail3PaneWindow.js @@ -754,6 +754,10 @@ function NotifyObservers(aSubject, aTopic, aData) function Create3PaneGlobals() { + accountCentralBox = document.getElementById("accountCentralBox"); + gSearchBox = document.getElementById("searchBox"); + gSearchBox.collapsed = true; + GetMessagePane().collapsed = true; } // because the "open" state persists, we'll call