From 6a22b34ad126b1d71399c096f116eff06a3c3ce6 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 23 Dec 1999 01:45:16 +0000 Subject: [PATCH] new files confirmation dialog (for automigration) for bug #18118 not part of build yet. --- profile/resources/content/confirmMigration.js | 18 ++++++++++ .../resources/content/confirmMigration.xul | 35 +++++++++++++++++++ .../locale/en-US/confirmMigration.dtd | 4 +++ 3 files changed, 57 insertions(+) create mode 100644 profile/resources/content/confirmMigration.js create mode 100644 profile/resources/content/confirmMigration.xul create mode 100644 profile/resources/locale/en-US/confirmMigration.dtd diff --git a/profile/resources/content/confirmMigration.js b/profile/resources/content/confirmMigration.js new file mode 100644 index 000000000000..30fd332217be --- /dev/null +++ b/profile/resources/content/confirmMigration.js @@ -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); +} diff --git a/profile/resources/content/confirmMigration.xul b/profile/resources/content/confirmMigration.xul new file mode 100644 index 000000000000..0cd6080de00c --- /dev/null +++ b/profile/resources/content/confirmMigration.xul @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + &confirmMigrationPart1.label; + + + &confirmMigrationPart2.label; + + + &confirmMigrationPart3.label; + + + + + + + diff --git a/profile/resources/locale/en-US/confirmMigration.dtd b/profile/resources/locale/en-US/confirmMigration.dtd new file mode 100644 index 000000000000..34560d4f7e88 --- /dev/null +++ b/profile/resources/locale/en-US/confirmMigration.dtd @@ -0,0 +1,4 @@ + + + +