mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user