Files
Mozilla/mozilla/profile/resources/content/confirmMigration.js
sspitzer%netscape.com 10682414a8 workaround fix for #26885. changes for ben to the nsIProfile interface
r=ben@netscape.com


git-svn-id: svn://10.0.0.236/trunk@60012 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 01:04:41 +00:00

53 lines
1.3 KiB
JavaScript

var bundle;
var profile = Components.classes["component://netscape/profile/manager"].getService();
profile = profile.QueryInterface(Components.interfaces.nsIProfile);
function handleOKButton()
{
profile.automigrate = true;
return true;
}
function handleCancelButton()
{
profile.automigrate = false;
return true;
}
function onLoad()
{
try {
bundle = srGetStrBundle("chrome://profile/locale/migration.properties");
}
catch (ex) {
dump("please fix bug #26291\n");
}
doSetOKCancel(handleOKButton, handleCancelButton);
var okButton = document.getElementById("ok");
var cancelButton = document.getElementById("cancel");
if( !okButton || !cancelButton )
return false;
try {
okButton.setAttribute( "value", bundle.GetStringFromName( "migrate" ) );
}
catch (ex) {
dump("please fix bug #26291\n");
okButton.setAttribute( "value", "Migrate *");
}
okButton.setAttribute( "class", ( okButton.getAttribute( "class" ) + " padded" ) );
try {
cancelButton.setAttribute( "value", bundle.GetStringFromName( "newprofile" ) );
}
catch (ex) {
dump("please fix bug #26291\n");
cancelButton.setAttribute("value","New Profile *");
}
cancelButton.setAttribute( "class", ( cancelButton.getAttribute( "class" ) + " padded" ) );
centerWindowOnScreen();
}