Rename 'inbatch' to 'refresh' to make added panel show up right away (bug 28073).

This commit is contained in:
slamm%netscape.com 2000-05-08 20:34:28 +00:00
Родитель 80954aaa3c
Коммит c2952153d8
1 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -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. */