From f196aabfa60775e0e8e2eeb9e7757225c39fb450 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sat, 14 Apr 2001 05:28:49 +0000 Subject: [PATCH] Empty or otherwise messed up buttons in profile dialogs (73781, 73666). r=timeless sr=alecf git-svn-id: svn://10.0.0.236/trunk@92282 18797224-902f-48f8-a5cc-f745e15eee43 --- .../profile/resources/content/confirmMigration.js | 4 ++-- .../profile/resources/content/deleteProfile.js | 15 +++++---------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/mozilla/profile/resources/content/confirmMigration.js b/mozilla/profile/resources/content/confirmMigration.js index 908af295ae9..cb13a84e76a 100644 --- a/mozilla/profile/resources/content/confirmMigration.js +++ b/mozilla/profile/resources/content/confirmMigration.js @@ -23,9 +23,9 @@ function onLoad() if (!okButton || !cancelButton) return false; - okButton.setAttribute("value", gMigrationBundle.getString("migrate")); + okButton.setAttribute("label", gMigrationBundle.getString("migrate")); okButton.setAttribute("class", okButton.getAttribute("class") + " padded"); - cancelButton.setAttribute("value", gMigrationBundle.getString("newprofile")); + cancelButton.setAttribute("label", gMigrationBundle.getString("newprofile")); cancelButton.setAttribute("class", cancelButton.getAttribute("class") + " padded"); okButton.focus(); centerWindowOnScreen(); diff --git a/mozilla/profile/resources/content/deleteProfile.js b/mozilla/profile/resources/content/deleteProfile.js index 53b9ce96727..a64fe373369 100644 --- a/mozilla/profile/resources/content/deleteProfile.js +++ b/mozilla/profile/resources/content/deleteProfile.js @@ -5,16 +5,11 @@ function Startup() var okButton = document.getElementById("ok"); var Button2 = document.getElementById("Button2"); var cancelButton = document.getElementById("cancel"); - - try { - okButton.setAttribute("value", bundle.getString("dontDeleteFiles")); - Button2.setAttribute("value", bundle.getString("deleteFiles")); - cancelButton.setAttribute("value", bundle.getString("cancel")); - } catch(e) { - okButton.setAttribute( "value", "Don't Delete Files Yah" ); - Button2.setAttribute( "value", "Delete Files Yah" ); - cancelButton.setAttribute( "value", "Cancel Yah" ); - } + + okButton.setAttribute("label", bundle.getString("dontDeleteFiles")); + Button2.setAttribute("label", bundle.getString("deleteFiles")); + cancelButton.setAttribute("label", bundle.getString("cancel")); + Button2.removeAttribute("collapsed"); okButton.focus(); }