From: helge Date: Thu, 21 Jul 2005 09:15:34 +0000 (+0000) Subject: fixed POST requests X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9802619bbb478244c89c3a93822c0ba44b9a009;p=scalable-opengroupware.org fixed POST requests git-svn-id: http://svn.opengroupware.org/SOGo/trunk@863 d1b88da0-ebda-0310-925b-ed51d893ca5b --- 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)