зеркало из https://github.com/mozilla/gecko-dev.git
cleaned up confirm migration dialog r=jst@citec.fi
This commit is contained in:
Родитель
54a5a9aff7
Коммит
349757ac90
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче