See ChangeLog.

Monotone-Parent: 1c31ee73919c9cbab03a3eca6cad82ef8add605f
Monotone-Revision: 9a4fbee9a3ab5f905ffeb22dc90fe024081bf88d

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-06-16T04:09:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2011-06-16 04:09:49 +00:00
parent a74b23323c
commit 35344ae1f7
2 changed files with 15 additions and 6 deletions
+5
View File
@@ -1,3 +1,8 @@
2011-06-20 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/MailerUI.js (onMenuEmptyTrashCallback):
reset the unseen count when emptying the trash folder.
2011-06-17 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/SOGoTimePicker.js (onChange): the
+10 -6
View File
@@ -2355,18 +2355,22 @@ function onMenuEmptyTrashCallback(http) {
var reloaded = false;
var nodes = $("mailboxTree").select("DIV[datatype=trash]");
for (var i = 0; i < nodes.length; i++) {
var sibling = nodes[i].next();
if (sibling && sibling.hasClassName("clip")) {
initMailboxTree();
reloaded = true;
break;
if (http.callbackData.mailbox == nodes[i].readAttribute('dataname')) {
// Reset the unread message count
updateUnseenCount(nodes[i], 0);
var sibling = nodes[i].next();
if (sibling && sibling.hasClassName("clip")) {
initMailboxTree();
reloaded = true;
break;
}
}
}
if (!reloaded) {
var data = http.responseText.evalJSON(true);
// We currently only show the quota for the first account (0).
if (data.quotas && http.callbackData.mailbox.startsWith('/0/'))
updateQuotas(data.quotas);
updateQuotas(data.quotas);
}
}
else