mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
new files confirmation dialog (for automigration) for bug #18118
not part of build yet.
This commit is contained in:
parent
c3a75ec8af
commit
6a22b34ad1
18
profile/resources/content/confirmMigration.js
Normal file
18
profile/resources/content/confirmMigration.js
Normal 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);
|
||||
}
|
35
profile/resources/content/confirmMigration.xul
Normal file
35
profile/resources/content/confirmMigration.xul
Normal 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>
|
4
profile/resources/locale/en-US/confirmMigration.dtd
Normal file
4
profile/resources/locale/en-US/confirmMigration.dtd
Normal 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.)">
|
Loading…
Reference in New Issue
Block a user