From 6f68d6dc793c70ca68dc3b490934f7a11bc87bf0 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Fri, 4 May 2001 02:34:52 +0000 Subject: [PATCH] fix download selected and download flagged for offline use, broken by earlier offline ui checkin sr=sspitzer 78830 git-svn-id: svn://10.0.0.236/trunk@93880 18797224-902f-48f8-a5cc-f745e15eee43 --- .../base/resources/content/commandglue.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/mozilla/mailnews/base/resources/content/commandglue.js b/mozilla/mailnews/base/resources/content/commandglue.js index b44cb6a71ec..ad8b1381265 100644 --- a/mozilla/mailnews/base/resources/content/commandglue.js +++ b/mozilla/mailnews/base/resources/content/commandglue.js @@ -961,7 +961,7 @@ function MsgToggleWorkOffline() } -function MsgDownloadFlagged() +function MsgSynchronizeOffline() { // this is just code for my testing purposes, and doesn't have the proper UI, as in the offline spec. // we could use the account manager, or add a new service, the offline manager. @@ -975,20 +975,6 @@ function MsgDownloadFlagged() } } -function MsgDownloadSelected() -{ - // this is just code for my testing purposes, and doesn't have the proper UI, as in the offline spec. - // we could use the account manager, or add a new service, the offline manager. - // what the heck, might as well bite the bullet and add a new service. - var offlineManager = Components.classes["@mozilla.org/messenger/offline-manager;1"].getService(Components.interfaces.nsIMsgOfflineManager); - if (offlineManager) { - // should use progress window here. params are: - // download news, download mail, send unsent messages, go offline when done, msg window - messenger.SetWindow(window, msgWindow); - offlineManager.synchronizeForOffline(false, true, true, false, msgWindow); - } - } - function MsgSettingsOffline() { }