mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-08 09:55:09 +00:00
Monotone-Parent: 7342d9cd31675160736e0f2db8a83047d9babea9
Monotone-Revision: 4ebf80607b2a71f3b2192bd3ba8c310f15bd37f5 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-10-09T17:57:27 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -46,8 +46,8 @@ function openContactsFolder(contactsFolder, reload, idx) {
|
||||
var contactsList = $("contactsList");
|
||||
if (contactsList)
|
||||
selection = contactsList.getSelectedRowsId();
|
||||
else
|
||||
window.alert("no contactsList");
|
||||
// else
|
||||
// window.alert("no contactsList");
|
||||
}
|
||||
else
|
||||
selection = null;
|
||||
|
||||
@@ -141,6 +141,8 @@ function openMessageWindowsForSelection(action, firstOnly) {
|
||||
ApplicationBaseURL + currentMailbox
|
||||
+ "/" + rows[i].substr(4)
|
||||
+ "/" + action);
|
||||
} else {
|
||||
window.alert(labels["Please select a message."]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,6 +234,7 @@ function uixDeleteSelectedMessages(sender) {
|
||||
url = ApplicationBaseURL + messageId + "/trash";
|
||||
http = createHTTPClient();
|
||||
http.open("POST", url, false /* not async */);
|
||||
http.url = url;
|
||||
http.send("");
|
||||
if (!isHttpStatus204(http.status)) { /* request failed */
|
||||
failCount++;
|
||||
@@ -246,9 +249,8 @@ function uixDeleteSelectedMessages(sender) {
|
||||
}
|
||||
}
|
||||
http = null;
|
||||
|
||||
|
||||
/* remove from page */
|
||||
|
||||
/* line-through would be nicer, but hiding is OK too */
|
||||
var row = $(rowIds[i]);
|
||||
row.parentNode.removeChild(row);
|
||||
|
||||
Reference in New Issue
Block a user