See ChangeLog.

Monotone-Parent: 763ab7e667a159d6b727544a067a085d622ab598
Monotone-Revision: 85c2eea4bb09ae229989bf2dba4e20b82d982284

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-06-25T20:43:23
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-06-25 20:43:23 +00:00
parent b2fc189b93
commit cc7ead5cef
2 changed files with 20 additions and 2 deletions

View File

@@ -48,6 +48,8 @@
(loadMessageCallback): the window is no longer reloaded if the
message doesn't exist; only the proper row is removed.
(refreshMessage): new function called after sending a message.
(onMailboxMenuMove, onMailboxMenuCopy): remove cache of target
folder.
2010-06-24 Francis Lachapelle <flachapelle@inverse.ca>

View File

@@ -545,6 +545,14 @@ function onMailboxMenuMove(event) {
break;
}
}
// 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]);
}
var url = ApplicationBaseURL + encodeURI(Mailer.currentMailbox) + "/moveMessages";
var parameters = "uid=" + uids.join(",") + "&folder=" + targetMailbox;
var data = { "id": uids, "mailbox": Mailer.currentMailbox, "path": paths, "folder": targetMailbox, "refresh": true };
@@ -572,6 +580,14 @@ function onMailboxMenuCopy(event) {
uids.push(uid);
paths.push(path);
}
// 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]);
}
var url = ApplicationBaseURL + encodeURI(Mailer.currentMailbox) + "/copyMessages";
var parameters = "uid=" + uids.join(",") + "&folder=" + targetMailbox;
var data = { "id": uids, "mailbox": Mailer.currentMailbox, "path": paths, "folder": targetMailbox, "refresh": false };
@@ -2282,8 +2298,8 @@ function onLabelMenuPrepareVisibility() {
}
}
var lis = this.childNodesWithTag("ul")[0].childNodesWithTag("li")
var isFlagged = false;
var lis = this.childNodesWithTag("ul")[0].childNodesWithTag("li");
var isFlagged = false;
for (var i = 1; i < 6; i++) {
if (flags["label" + i]) {
isFlagged = true;