diff --git a/mozilla/xpfe/global/resources/content/bindings/dialog.xml b/mozilla/xpfe/global/resources/content/bindings/dialog.xml index 313b67ba894..1e474fded2b 100644 --- a/mozilla/xpfe/global/resources/content/bindings/dialog.xml +++ b/mozilla/xpfe/global/resources/content/bindings/dialog.xml @@ -58,8 +58,7 @@ 0 ? btns[0] : document.getAnonymousElementByAttribute(this, "dlgtype", aDlgType); + return this._buttons[aDlgType]; ]]> @@ -110,43 +109,26 @@ - - + + @@ -168,63 +150,57 @@ ]]> - - - 0) { - btn = btns[0]; - this._useAnonButton[aDlgType] = false; - } else { - btn = document.getAnonymousElementByAttribute(this, "dlgtype", aDlgType); - this._useAnonButton[aDlgType] = true; - } - - if (btn) { - btn.addEventListener("command", this._handleButtonCommand, true); - // don't override custom labels with pre-defined labels on explicit buttons - if (!btn.hasAttribute("label")) - btn.setAttribute("label", this.mStrBundle.GetStringFromName("button-"+aDlgType)); - } - return btn; - ]]> - -