From e91f00e308a4fac5c5e48979f3a8b2b972faed7c Mon Sep 17 00:00:00 2001 From: "hewitt%netscape.com" Date: Fri, 18 Jan 2002 23:11:54 +0000 Subject: [PATCH] 114580 - dialog alignment issues, r=jag, sr=bryner, a=blizzard --- .../resources/content/bindings/dialog.xml | 128 +++++++----------- 1 file changed, 52 insertions(+), 76 deletions(-) diff --git a/xpfe/global/resources/content/bindings/dialog.xml b/xpfe/global/resources/content/bindings/dialog.xml index 313b67ba8944..1e474fded2be 100644 --- a/xpfe/global/resources/content/bindings/dialog.xml +++ b/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; - ]]> - -