From e9802619bbb478244c89c3a93822c0ba44b9a009 Mon Sep 17 00:00:00 2001 From: helge Date: Thu, 21 Jul 2005 09:15:34 +0000 Subject: [PATCH] fixed POST requests git-svn-id: http://svn.opengroupware.org/SOGo/trunk@863 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/WebServerResources/ChangeLog | 3 +++ SOGo/UI/WebServerResources/mailer.js | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/SOGo/UI/WebServerResources/ChangeLog b/SOGo/UI/WebServerResources/ChangeLog index d7bb9c0f..67b8a6ee 100644 --- a/SOGo/UI/WebServerResources/ChangeLog +++ b/SOGo/UI/WebServerResources/ChangeLog @@ -1,5 +1,8 @@ 2005-07-21 Helge Hess + * mailer.js: fixed a Linux Firefox issue with using POST in + XMLHttpRequest (must pass an empty string for a send, not 'null') + * mailer.js: fixed a bug with calling the opener on errors 2005-07-20 Helge Hess diff --git a/SOGo/UI/WebServerResources/mailer.js b/SOGo/UI/WebServerResources/mailer.js index b41421eb..057f8aea 100644 --- a/SOGo/UI/WebServerResources/mailer.js +++ b/SOGo/UI/WebServerResources/mailer.js @@ -270,7 +270,7 @@ function mailListMarkMessage(sender, action, msguid, markread) { if (http) { // TODO: add parameter to signal that we are only interested in OK http.open("POST", url + "&jsonly=1", false /* not async */); - http.send(null); + http.send(""); if (http.status != 200) { // TODO: refresh page? alert("Message Mark Failed: " + http.statusText); @@ -346,7 +346,7 @@ function uixDeleteSelectedMessages(sender) { http = createHTTPClient(); http.open("POST", url, false /* not async */); - http.send(null); + http.send(""); if (http.status != 200) { /* request failed */ failCount++; http = null; @@ -359,7 +359,6 @@ function uixDeleteSelectedMessages(sender) { /* line-through would be nicer, but hiding is OK too */ rowElem = document.getElementById("row_" + rows[i]); rowElem.style.display = "none"; - } if (failCount > 0) -- 2.39.5