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

This commit is contained in:
hyatt%mozilla.org 2003-08-10 22:48:52 +00:00
parent 89819f854f
commit 27733a95d6
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;
]]>