Monotone-Parent: 351c343491eb5005eeec456fd7caf97dd6c27489

Monotone-Revision: f445ddae9e72252fda8d9a7adee3c89ef2f81c87

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-28T19:05:00
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-28 19:05:00 +00:00
parent 85d84068ac
commit 52c2283eba
7 changed files with 100 additions and 77 deletions
+8 -1
View File
@@ -1261,6 +1261,12 @@ function onMenuDeleteFolder(event) {
}
}
function onMenuEmptyTrash(event) {
var folderID = document.menuTarget.getAttribute("dataname");
var urlstr = URLForFolderID(folderID) + "/emptyTrash";
triggerAjaxRequest(urlstr, folderOperationCallback);
}
function folderOperationCallback(http) {
if (http.readyState == 4
&& http.status == 204)
@@ -1282,7 +1288,8 @@ function initializeMenus() {
onMenuSharing);
menus["trashIconMenu"] = new Array(null, null, null, "-", null,
onMenuCreateFolder, null,
null, "-", null, onMenuSharing);
onMenuEmptyTrash, "-", null,
onMenuSharing);
menus["mailboxIconMenu"] = new Array(null, null, null, "-", null,
onMenuCreateFolder,
onMenuRenameFolder,