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:
parent
6f82f87b42
commit
3a32e952ce
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue