From 04cb6e81c42f6ab4df425b7155def4b811247b0d Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Mon, 7 May 2001 23:30:36 +0000 Subject: [PATCH] fix problem where synchronize for offline didn't bring up offline dialog r=mohanb, sr=sspitzer 79183 --- mailnews/base/resources/content/commandglue.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/mailnews/base/resources/content/commandglue.js b/mailnews/base/resources/content/commandglue.js index ad8b1381265..8089bd4f86c 100644 --- a/mailnews/base/resources/content/commandglue.js +++ b/mailnews/base/resources/content/commandglue.js @@ -961,20 +961,6 @@ function MsgToggleWorkOffline() } -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. - // 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() { }