From c2952153d829688900cd5eae37b3e3239baac6c1 Mon Sep 17 00:00:00 2001 From: "slamm%netscape.com" Date: Mon, 8 May 2000 20:34:28 +0000 Subject: [PATCH] Rename 'inbatch' to 'refresh' to make added panel show up right away (bug 28073). --- xpfe/components/sidebar/src/nsSidebar.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/xpfe/components/sidebar/src/nsSidebar.js b/xpfe/components/sidebar/src/nsSidebar.js index b0bf9f3717f..4dafe52b62b 100644 --- a/xpfe/components/sidebar/src/nsSidebar.js +++ b/xpfe/components/sidebar/src/nsSidebar.js @@ -121,11 +121,6 @@ function (aTitle, aContentURL, aCustomizeURL) if (!rv) return; - this.datasource.Assert(this.rdf.GetResource(this.resource), - this.rdf.GetResource(this.nc + "inbatch"), - this.rdf.GetLiteral("true"), - true); - /* Now make some sidebar-ish assertions about it... */ this.datasource.Assert(panel_resource, this.rdf.GetResource(this.nc + "title"), @@ -143,8 +138,14 @@ function (aTitle, aContentURL, aCustomizeURL) container.AppendElement(panel_resource); + // Use an assertion to pass a "refresh" event to all the sidebars. + // They use observers to watch for this assertion (in sidebarOverlay.js). + this.datasource.Assert(this.rdf.GetResource(this.resource), + this.rdf.GetResource(this.nc + "refresh"), + this.rdf.GetLiteral("true"), + true); this.datasource.Unassert(this.rdf.GetResource(this.resource), - this.rdf.GetResource(this.nc + "inbatch"), + this.rdf.GetResource(this.nc + "refresh"), this.rdf.GetLiteral("true")); /* Write the modified panels out. */