new files confirmation dialog (for automigration) for bug #18118

not part of build yet.
This commit is contained in:
sspitzer%netscape.com 1999-12-23 01:45:16 +00:00
parent c3a75ec8af
commit 6a22b34ad1
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,18 @@
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()
{
doSetOKCancel(handleOKButton, handleCancelButton);
}

View File

@ -0,0 +1,35 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://profile/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://profile/locale/confirmMigration.dtd" >
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
align="vertical"
title="&window.title;"
onload="onLoad()"
class="dialog">
<html:script language="javascript" src="chrome://profile/content/confirmMigration.js"/>
<box align="horizontal" flex="100%">
<box align="vertical" flex="100%">
<html:div>
&confirmMigrationPart1.label;
</html:div>
<html:div>
&confirmMigrationPart2.label;
</html:div>
<html:div>
&confirmMigrationPart3.label;
</html:div>
</box>
</box>
<box id="okCancelButtons"/>
</window>

View File

@ -0,0 +1,4 @@
<!ENTITY window.title "Confirm Migration">
<!ENTITY confirmMigrationPart1.label "You are about to migrate your 4.x profile.">
<!ENTITY confirmMigrationPart2.label "Are you sure you want to do this?">
<!ENTITY confirmMigrationPart3.label "(If you click no, you can always do it later.)">