mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-17 06:14:54 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user