diff --git a/profile/resources/content/profileManager.js b/profile/resources/content/profileManager.js
index ccfdabfff3cb..e011985d2db4 100644
--- a/profile/resources/content/profileManager.js
+++ b/profile/resources/content/profileManager.js
@@ -245,9 +245,11 @@ function SwitchProfileManagerMode()
captionLine = "Manage Profiles *";
}
- var manage = document.getElementById( "manage" ); // hide the manage profiles button...
- var manageParent = manage.parentNode;
- manageParent.removeChild( manage );
+ var profileList = document.getElementById("profiles");
+ profileList.focus();
+
+ // hide the manage profiles button...
+ document.documentElement.getButton("extra2").hidden = true;
profileManagerMode = "manager"; // swap the mode
}
else {
@@ -283,7 +285,7 @@ function DoEnabling()
{
var renbutton = document.getElementById( "renbutton" );
var delbutton = document.getElementById( "delbutton" );
- var start = document.getElementById( "ok" );
+ var start = document.documentElement.getButton( "accept" );
var profileList = document.getElementById( "profiles" );
if (profileList.view.selection.count == 0)
@@ -326,7 +328,7 @@ function HandleKeyEvent( aEvent )
return;
ConfirmDelete();
break;
- case "VK_F2":
+ case KeyEvent.DOM_VK_F2:
if( profileManagerMode != "manager" )
return;
RenameProfile();
diff --git a/profile/resources/content/profileSelection.js b/profile/resources/content/profileSelection.js
index 734085444b9b..f86ae51b1d62 100644
--- a/profile/resources/content/profileSelection.js
+++ b/profile/resources/content/profileSelection.js
@@ -59,26 +59,24 @@ function StartUp()
gProfileManagerBundle = document.getElementById("bundle_profileManager");
gBrandBundle = document.getElementById("bundle_brand");
- SetUpOKCancelButtons();
- centerWindowOnScreen();
+ if (gStartupMode) {
+ document.documentElement.setAttribute("buttonlabelcancel",
+ document.documentElement.getAttribute("buttonlabelexit"));
+ document.documentElement.setAttribute("buttonlabelaccept",
+ document.documentElement.getAttribute("buttonlabelstart"));
+ }
+
if(window.location && window.location.search && window.location.search == "?manage=true" )
SwitchProfileManagerMode();
-
- // Set up the intro text, depending on our context
- var introTextItem = document.getElementById("intro");
- var introText, insertText;
- if (gStartupMode) {
- insertText = gProfileManagerBundle.getFormattedString("startButton",
- [gBrandBundle.getString("brandShortName")]);
- introText = gProfileManagerBundle.getFormattedString("intro_start",
- [insertText]);
+ else {
+ // Set up the intro text, depending on our context
+ var introTextItem = document.getElementById("intro");
+ var insertText = document.documentElement.getAttribute("buttonlabelaccept");
+ var introText = gProfileManagerBundle.getFormattedString(
+ gStartupMode ? "intro_start" : "intro_switch",
+ [insertText]);
+ introTextItem.textContent = introText;
}
- else {
- insertText = gProfileManagerBundle.getString("selectButton");
- introText = gProfileManagerBundle.getFormattedString("intro_switch",
- [insertText]);
- }
- introTextItem.childNodes[0].nodeValue = introText;
var dirServ = Components.classes['@mozilla.org/file/directory_service;1']
.getService(Components.interfaces.nsIProperties);
@@ -287,32 +285,3 @@ function onExit()
gDialogParams.SetInt(0, 0); // 0 == cancel
return true;
}
-
-function SetUpOKCancelButtons()
-{
- doSetOKCancel( onStart, onExit, null, null );
- var okButton = document.getElementById("ok");
- var cancelButton = document.getElementById("cancel");
-
- var okButtonString;
- var cancelButtonString;
-
- try {
- if (gStartupMode) {
- okButtonString = gProfileManagerBundle.getFormattedString("startButton",
- [gBrandBundle.getString("brandShortName")]);
- cancelButtonString = gProfileManagerBundle.getString("exitButton");
- }
- else {
- okButtonString = gProfileManagerBundle.getString("selectButton");
- cancelButtonString = gProfileManagerBundle.getString("cancel");
- }
- } catch (e) {
- okButtonString = "Start Yah";
- cancelButtonString = "Exit Yah";
- }
-
- okButton.setAttribute( "label", okButtonString );
- okButton.setAttribute( "class", ( okButton.getAttribute("class") + " padded" ) );
- cancelButton.setAttribute( "label", cancelButtonString );
-}
diff --git a/profile/resources/content/profileSelection.xul b/profile/resources/content/profileSelection.xul
index c3b0063e26af..196e9c51fe10 100644
--- a/profile/resources/content/profileSelection.xul
+++ b/profile/resources/content/profileSelection.xul
@@ -43,24 +43,30 @@
-
-
-
%brandDTD;
%profileDTD;
]>
-
-
-
@@ -80,7 +84,7 @@
- ""
+
&pmTextA.label;
@@ -114,16 +118,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/profile/resources/locale/en-US/profileManager.properties b/profile/resources/locale/en-US/profileManager.properties
index 10d0d39c8a9d..98ddf53cbdb2 100644
--- a/profile/resources/locale/en-US/profileManager.properties
+++ b/profile/resources/locale/en-US/profileManager.properties
@@ -26,12 +26,6 @@ intro_switch=To switch to another profile, which contains stored messages, setti
pm_button=Back...
ps_button=Manage Profiles...
-selectButton=Use Profile
-startButton=Start %S
-exitButton=Exit
-
-cancel=Cancel
-
invalidChar=The character "%S" is not allowed in profile names. Please choose a different name.
profileCreationFailed=Profile couldn't be created. Probably the chosen folder isn't writable.
diff --git a/profile/resources/locale/en-US/profileSelection.dtd b/profile/resources/locale/en-US/profileSelection.dtd
index fe289a7632dd..aee8d589e07b 100644
--- a/profile/resources/locale/en-US/profileSelection.dtd
+++ b/profile/resources/locale/en-US/profileSelection.dtd
@@ -51,6 +51,7 @@
+
diff --git a/themes/classic/global/mac/dialog.css b/themes/classic/global/mac/dialog.css
index e9357f99407a..b7f2c1df3d84 100644
--- a/themes/classic/global/mac/dialog.css
+++ b/themes/classic/global/mac/dialog.css
@@ -78,7 +78,7 @@ dialogheader {
.header-large {
-moz-box-orient: vertical;
- margin: 0;
+ margin: -8px -10px 8px -10px;
border-left: none;
border-right: none;
border-top: 1px solid;
diff --git a/themes/classic/global/win/dialog.css b/themes/classic/global/win/dialog.css
index bc3fc9b425c2..0654c9bab287 100644
--- a/themes/classic/global/win/dialog.css
+++ b/themes/classic/global/win/dialog.css
@@ -77,7 +77,7 @@ dialogheader {
.header-large {
-moz-box-orient: vertical;
- margin: 0;
+ margin: -8px -10px 8px -10px;
border-left: none;
border-right: none;
border-top: none;
diff --git a/themes/modern/global/dialog.css b/themes/modern/global/dialog.css
index ad61651e4f40..74577c73427e 100644
--- a/themes/modern/global/dialog.css
+++ b/themes/modern/global/dialog.css
@@ -71,7 +71,7 @@ dialogheader {
.header-large {
-moz-box-orient: vertical;
- margin: 0;
+ margin: -7px -5px 5px -7px;
border-left: none;
border-right: none;
border-top: none;
@@ -89,4 +89,4 @@ dialogheader {
.header-large > .dialogheader-description {
margin-left: 12px !important;
-}
\ No newline at end of file
+}
diff --git a/xpfe/global/resources/content/bindings/dialog.xml b/xpfe/global/resources/content/bindings/dialog.xml
index 997d671efa1c..3ec134274313 100644
--- a/xpfe/global/resources/content/bindings/dialog.xml
+++ b/xpfe/global/resources/content/bindings/dialog.xml
@@ -19,12 +19,13 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -243,22 +244,6 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
+
+