Fix for 173444, custom toolbars show up (incorrectly) in popup windows.

git-svn-id: svn://10.0.0.236/trunk@145850 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%mozilla.org
2003-08-10 22:48:52 +00:00
parent 236ee2d6d8
commit d78211f28b
2 changed files with 3 additions and 2 deletions

View File

@@ -529,7 +529,7 @@ function addNewToolbar()
// if a conflict is found
var nameToId = "__customToolbar_" + name.value.replace(" ", "");
var existingToolbar = gToolboxDocument.getElementById(nameToId);
if (existingToolbar || !name.value) {
if (existingToolbar) {
message = stringBundle.getFormattedString("enterToolbarDup", [name.value]);
} else {
break;

View File

@@ -72,7 +72,8 @@
toolbar.setAttribute("mode", this.getAttribute("mode"));
toolbar.setAttribute("iconsize", this.getAttribute("iconsize"));
toolbar.setAttribute("context", this.toolbarset.getAttribute("context"));
toolbar.setAttribute("class", "chromeclass-toolbar");
this.insertBefore(toolbar, this.toolbarset);
return toolbar;
]]>