See Changelog.

Monotone-Parent: 2b28f6d0a82dd762775a558cb05973125df10b61
Monotone-Revision: f3b51cf476c6230ef82b433a28fb5b9fc99ecba7

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-12-08T19:57:05
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle 2010-12-08 19:57:05 +00:00
parent 6f82f87b42
commit 3a32e952ce
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-12-08 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/MailerUI.js (onMenuEmptyTrashCallback):
refresh the folders tree if there're folders in the trash.
2010-12-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreContext.m

View file

@ -2236,8 +2236,18 @@ function onMenuEmptyTrash(event) {
function onMenuEmptyTrashCallback(http) {
if (http.readyState == 4
&& isHttpStatus204(http.status))
&& isHttpStatus204(http.status)) {
deleteCachedMailboxByType('trash');
// Reload the folder tree if there was folders in the trash
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();
break;
}
}
}
else
showAlertDialog(http.callbackData);
}