Mozilla/mozilla/profile/resources/content/confirmMigration.js
blakeross%telocity.com f196aabfa6 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
2001-04-14 05:28:49 +00:00

35 lines
1014 B
JavaScript

var gMigrationBundle;
var profile = Components.classes["@mozilla.org/profile/manager;1"].getService();
profile = profile.QueryInterface(Components.interfaces.nsIProfileInternal);
function handleOKButton()
{
profile.automigrate = true;
return true;
}
function handleCancelButton()
{
profile.automigrate = false;
return true;
}
function onLoad()
{
gMigrationBundle = document.getElementById("bundle_migration");
doSetOKCancel(handleOKButton, handleCancelButton);
var okButton = document.getElementById("ok");
var cancelButton = document.getElementById("cancel");
if (!okButton || !cancelButton)
return false;
okButton.setAttribute("label", gMigrationBundle.getString("migrate"));
okButton.setAttribute("class", okButton.getAttribute("class") + " padded");
cancelButton.setAttribute("label", gMigrationBundle.getString("newprofile"));
cancelButton.setAttribute("class", cancelButton.getAttribute("class") + " padded");
okButton.focus();
centerWindowOnScreen();
return true;
}