From 9ffb9ffba3a9ebeaa844ef6d78b89cc6d28c93e8 Mon Sep 17 00:00:00 2001 From: "Stefan.Borggraefe%gmx.de" Date: Wed, 7 Jul 2004 11:32:45 +0000 Subject: [PATCH] Bug 226956: Convert users of dialogOverlay.xul in mailnews/ to . The patch also corrects some minor UI issues like missing/wrong access keys. r=neil, sr=mscott --- .../resources/content/replicationProgress.js | 13 +-- .../resources/content/replicationProgress.xul | 82 ----------------- .../locale/en-US/replicationProgress.dtd | 41 --------- .../content/abAddressBookNameDialog.js | 2 - .../content/abAddressBookNameDialog.xul | 38 +++----- .../locale/en-US/abAddressBookNameDialog.dtd | 39 -------- .../base/resources/content/newFolderDialog.js | 9 +- .../resources/content/newFolderDialog.xul | 30 ++---- .../resources/content/renameFolderDialog.js | 9 +- .../resources/content/renameFolderDialog.xul | 28 ++---- .../locale/en-US/renameFolderDialog.dtd | 2 +- .../resources/content/askSendFormat.js | 21 ++--- .../resources/content/askSendFormat.xul | 28 +++--- .../resources/locale/en-US/askSendFormat.dtd | 25 ----- .../resources/content/msgCompSecurityInfo.js | 2 - .../resources/content/msgCompSecurityInfo.xul | 29 +++--- .../resources/content/msgReadSecurityInfo.js | 2 - .../resources/content/msgReadSecurityInfo.xul | 22 ++--- .../locale/en-US/msgCompSecurityInfo.dtd | 13 --- .../news/resources/content/downloadheaders.js | 20 +--- .../resources/content/downloadheaders.xul | 32 ++++--- .../locale/en-US/downloadheaders.dtd | 49 ---------- .../resources/locale/en-US/news.properties | 92 ------------------- .../messenger/smime/msgReadSecurityInfo.css | 68 -------------- .../messenger/smime/msgReadSecurityInfo.css | 68 -------------- 25 files changed, 92 insertions(+), 672 deletions(-) diff --git a/mailnews/addrbook/prefs/resources/content/replicationProgress.js b/mailnews/addrbook/prefs/resources/content/replicationProgress.js index 81c89c762cc..d96f9927c80 100644 --- a/mailnews/addrbook/prefs/resources/content/replicationProgress.js +++ b/mailnews/addrbook/prefs/resources/content/replicationProgress.js @@ -60,13 +60,6 @@ function onLoad() Replicate(); } -function DoReplicationClose() -{ - // XXX todo, confirm the cancel - onCancelReplication(false); - return true; -} - var progressListener = { onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) { @@ -126,18 +119,18 @@ function Replicate() } } -function onCancelReplication(closeWindow) +function onCancelReplication() { try { + // XXX todo, confirm the cancel gReplicationService.cancelReplication(gCurrentDirectoryPrefName); } catch (ex) { // XXX todo // perhaps replication hasn't started yet? This can happen if you hit cancel after attempting to replication when offline dump("unexpected failure while cancelling. ex=" + ex + "\n"); - if (closeWindow) - window.close(); } + return true; } function SetProgressText(textStr) diff --git a/mailnews/addrbook/prefs/resources/content/replicationProgress.xul b/mailnews/addrbook/prefs/resources/content/replicationProgress.xul index 40ad3123adb..e69de29bb2d 100644 --- a/mailnews/addrbook/prefs/resources/content/replicationProgress.xul +++ b/mailnews/addrbook/prefs/resources/content/replicationProgress.xul @@ -1,82 +0,0 @@ - - - - - - - - - - - - - -