From 42c6aadb80f990f5be164398d725c3b643337512 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Mon, 25 Feb 2008 06:12:31 +0000 Subject: [PATCH] Bug 399312 - "Incomplete Import Installation - impossible to restart process" (Manual migration implementation) [p=beckley@qualcomm.com (Jeff Beckley) r=bienvenu sr=mscott] --- mail/base/content/mailCore.js | 2 +- .../en-US/chrome/messenger/importDialog.dtd | 9 ++++---- .../import/resources/content/importDialog.js | 22 ++++++++++++++----- .../import/resources/content/importDialog.xul | 16 +++++++++----- 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/mail/base/content/mailCore.js b/mail/base/content/mailCore.js index 74077ba8a1f..8e154ba603b 100644 --- a/mail/base/content/mailCore.js +++ b/mail/base/content/mailCore.js @@ -164,7 +164,7 @@ function toAddressBook() function toImport() { - window.openDialog("chrome://messenger/content/importDialog.xul","importDialog","chrome, modal, titlebar", {importType: "addressbook"}); + window.openDialog("chrome://messenger/content/importDialog.xul","importDialog","chrome, modal, titlebar, centerscreen"); } // aPaneID diff --git a/mail/locales/en-US/chrome/messenger/importDialog.dtd b/mail/locales/en-US/chrome/messenger/importDialog.dtd index 41f23161879..debc1a7b1b2 100644 --- a/mail/locales/en-US/chrome/messenger/importDialog.dtd +++ b/mail/locales/en-US/chrome/messenger/importDialog.dtd @@ -44,6 +44,7 @@ LOCALIZATION NOTE : Do not translate any of the occurrences of the word --> + @@ -51,11 +52,11 @@ LOCALIZATION NOTE : Do not translate any of the occurrences of the word - + - - + + @@ -64,7 +65,7 @@ LOCALIZATION NOTE : Do not translate any of the occurrences of the word - + diff --git a/mailnews/import/resources/content/importDialog.js b/mailnews/import/resources/content/importDialog.js index 07c10c72da1..46495634a15 100644 --- a/mailnews/import/resources/content/importDialog.js +++ b/mailnews/import/resources/content/importDialog.js @@ -73,8 +73,8 @@ function OnLoadImportDialog() } else { - importType = "addressbook"; - progressInfo.importType = "addressbook"; + importType = "all"; + progressInfo.importType = "all"; } SetUpImportType(); @@ -914,10 +914,20 @@ function next() var backButton = document.getElementById("back"); backButton.removeAttribute("disabled"); var radioGroup = document.getElementById("importFields"); - SwitchType(radioGroup.value); - deck.setAttribute("selectedIndex", "1"); - SelectFirstItem(); - enableAdvance(); + + if (radioGroup.value == "all") + { + window.openDialog("chrome://messenger/content/migration/migration.xul", + "", "chrome,dialog,modal,centerscreen"); + close(); + } + else + { + SwitchType(radioGroup.value); + deck.setAttribute("selectedIndex", "1"); + SelectFirstItem(); + enableAdvance(); + } break; case "1": ImportDialogOKButton(); diff --git a/mailnews/import/resources/content/importDialog.xul b/mailnews/import/resources/content/importDialog.xul index e74d6001709..be9a963ddd9 100644 --- a/mailnews/import/resources/content/importDialog.xul +++ b/mailnews/import/resources/content/importDialog.xul @@ -72,12 +72,16 @@ &importDescription.label; &importDescription2.label; - - - - - - + + + + + + + + + +