From d2b9d3d09da4baad6ad3dd7f1bb40611ab34bc47 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Mon, 18 Sep 2000 21:49:17 +0000 Subject: [PATCH] part of the fix for #51571. r/a=mscott --- mailnews/base/resources/content/subscribe.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mailnews/base/resources/content/subscribe.js b/mailnews/base/resources/content/subscribe.js index 2e2ee611f8c1..aeb8b36806bc 100644 --- a/mailnews/base/resources/content/subscribe.js +++ b/mailnews/base/resources/content/subscribe.js @@ -10,6 +10,11 @@ var gNameField = null; var gFolderDelimiter = "."; var gStatusFeedback = new nsMsgStatusFeedback; +// used for caching the tree children (in typedown) +var lastTreeChildrenValue = null; +var lastTreeChildren = null; + + function SetUpRDF() { if (!RDF) { @@ -111,6 +116,11 @@ var MySubscribeListener = { function SetUpTree(forceToServer) { //dump("SetUpTree()\n"); + + // forget the cached tree children + lastTreeChildrenValue = null; + lastTreeChildren = null; + SetUpRDF(); gStatusBar = document.getElementById('statusbar-icon'); @@ -356,18 +366,10 @@ function SubscribeOnClick(event) } } -// used for caching the tree children (in typedown) -var lastTreeChildrenValue = null; -var lastTreeChildren = null; - function RefreshList() { // force it to talk to the server SetUpTree(true); - - // forget the cached tree children - lastTreeChildrenValue = null; - lastTreeChildren = null; } function trackGroupInTree()