Monotone-Parent: 426b535e2da36fbf5368515550e8353fd5148bc7

Monotone-Revision: 325588b39d451a573e15dab87f6ccb9fd342a2f0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-10T15:08:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-09-10 15:08:32 +00:00
parent 848b3ce639
commit ab5c142dd8
6 changed files with 456 additions and 541 deletions
+4 -4
View File
@@ -153,7 +153,7 @@ function mailListMarkMessage(event) {
if (http) {
// TODO: add parameter to signal that we are only interested in OK
http.open("POST", url + "&jsonly=1", false /* not async */);
http.open("POST", url, false /* not async */);
http.send("");
if (http.status != 200) {
// TODO: refresh page?
@@ -229,11 +229,11 @@ function uixDeleteSelectedMessages(sender) {
/* send AJAX request (synchronously) */
var messageId = currentMailbox + "/" + rowId;
url = ApplicationBaseURL + messageId + "/trash?jsonly=1";
url = ApplicationBaseURL + messageId + "/trash";
http = createHTTPClient();
http.open("POST", url, false /* not async */);
http.send("");
if (http.status != 200) { /* request failed */
if (!isHttpStatus204(http.status)) { /* request failed */
failCount++;
http = null;
continue;
@@ -270,7 +270,7 @@ function moveMessages(rowIds, folder) {
var messageId = currentMailbox + "/" + rowIds[i];
url = (ApplicationBaseURL + messageId
+ "/move?jsonly=1&tofolder=" + folder);
+ "/move?tofolder=" + folder);
http = createHTTPClient();
http.open("GET", url, false /* not async */);
http.send("");