See ChangeLog.

Monotone-Parent: c1fbc1eec0e204f82627f44220958a6f0f63ffe9
Monotone-Revision: ea268f9db61939a18337c4648193cc321736356b

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-07-28T21:17:57
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-07-28 21:17:57 +00:00
parent 98970b7b9b
commit 76806b1a83
4 changed files with 26 additions and 12 deletions
+19 -10
View File
@@ -548,11 +548,7 @@ function onMailboxMenuMove(event) {
}
// Remove cache of target data source
var keys = Mailer.dataSources.keys();
for (var i = 0; i < keys.length; i++) {
if (keys[i] == targetMailbox || keys[i].startsWith(targetMailbox + "?"))
Mailer.dataSources.unset(keys[i]);
}
deleteCachedMailbox(targetMailbox);
var url = ApplicationBaseURL + encodeURI(Mailer.currentMailbox) + "/moveMessages";
var parameters = "uid=" + uids.join(",") + "&folder=" + targetMailbox;
@@ -583,11 +579,7 @@ function onMailboxMenuCopy(event) {
}
// Remove cache of target data source
var keys = Mailer.dataSources.keys();
for (var i = 0; i < keys.length; i++) {
if (keys[i] == targetMailbox || keys[i].startsWith(targetMailbox + "?"))
Mailer.dataSources.unset(keys[i]);
}
deleteCachedMailbox(targetMailbox);
var url = ApplicationBaseURL + encodeURI(Mailer.currentMailbox) + "/copyMessages";
var parameters = "uid=" + uids.join(",") + "&folder=" + targetMailbox;
@@ -894,6 +886,23 @@ function onFolderMenuHide(event) {
topNode.selectedEntry.selectElement();
}
function deleteCachedMailboxByType(type) {
var nodes = $("mailboxTree").select("DIV[datatype=" + type + "]");
if (nodes.length == 1)
deleteCachedMailbox(nodes[0].readAttribute("dataname"));
if (Mailer.currentMailboxType == type)
refreshCurrentFolder();
}
function deleteCachedMailbox(mailboxPath) {
var keys = Mailer.dataSources.keys();
for (var i = 0; i < keys.length; i++) {
if (keys[i] == mailboxPath || keys[i].startsWith(mailboxPath + "?"))
Mailer.dataSources.unset(keys[i]);
}
}
function deleteCachedMessage(messageId) {
var done = false;
var counter = 0;