See ChangeLog.

Monotone-Parent: 9a4fbee9a3ab5f905ffeb22dc90fe024081bf88d
Monotone-Revision: 45fc846cf2415007c8d3b6ea92634c86de44afa7

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-06-16T08:11:06
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2011-06-16 08:11:06 +00:00
parent 35344ae1f7
commit e20a5fc6c0
2 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
2011-06-20 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/MailerUI.js (onMenuEmptyTrashCallback):
reset the unseen count when emptying the trash folder.
when emptying the trash folder, reset the unseen count and reset
the reference to the last selected message.
2011-06-17 Francis Lachapelle <flachapelle@inverse.ca>

View File

@@ -912,9 +912,8 @@ function unseenCountCallback(http) {
document.unseenCountAjaxRequest = null;
var data = http.responseText.evalJSON(true);
var node = mailboxTree.getMailboxNode(http.callbackData);
if (node) {
if (node)
updateUnseenCount(node, data.unseen, false);
}
}
}
@@ -2343,8 +2342,10 @@ function onMenuEmptyTrash(event) {
$('messageContent').innerHTML = '';
}
var msgID = Mailer.currentMessages[folderID];
if (msgID)
if (msgID) {
delete Mailer.currentMessages[folderID];
deleteCachedMessage(folderID + "/" + msgID);
}
}
function onMenuEmptyTrashCallback(http) {