This commit is contained in:
ben%netscape.com 2000-02-05 03:32:13 +00:00
Родитель 54a5a9aff7
Коммит 349757ac90
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,4 @@
var bundle;
var profile = Components.classes["component://netscape/profile/manager"].getService();
profile = profile.QueryInterface(Components.interfaces.nsIProfile);
@ -14,5 +15,16 @@ function handleCancelButton()
function onLoad()
{
bundle = srGetStrBundle("chrome://profile/locale/migration.properties");
doSetOKCancel(handleOKButton, handleCancelButton);
var okButton = document.getElementById("ok");
var cancelButton = document.getElementById("cancel");
if( !okButton || !cancelButton )
return false;
okButton.setAttribute( "value", bundle.GetStringFromName( "migrate" ) );
okButton.setAttribute( "class", ( okButton.getAttribute( "class" ) + " padded" ) );
cancelButton.setAttribute( "value", bundle.GetStringFromName( "newprofile" ) );
cancelButton.setAttribute( "class", ( cancelButton.getAttribute( "class" ) + " padded" ) );
centerWindowOnScreen();
}