home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.swcp.com
/
ftp.swcp.com.zip
/
ftp.swcp.com
/
mac
/
mozilla-macos9-1.3.1.sea.bin
/
Mozilla1.3.1
/
Chrome
/
comm.jar
/
content
/
communicator
/
profile
/
confirmMigration.js
next >
Wrap
Text File
|
2003-06-08
|
1KB
|
35 lines
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;
}