зеркало из https://github.com/mozilla/gecko-dev.git
fix download selected and download flagged for offline use, broken by earlier offline ui checkin sr=sspitzer 78830
This commit is contained in:
Родитель
74ffb14bf7
Коммит
fb6852c9c3
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче