From b3500ab834588f63d1cc6df13177e7e01719411f 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 git-svn-id: svn://10.0.0.236/trunk@112475 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/bindings/dialog.xml | 128 +++++++----------- 1 file changed, 52 insertions(+), 76 deletions(-) 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; - ]]> - -