mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-21 12:59:29 +00:00
Monotone-Parent: 7d7fda1fe8fdf96d8a846378379c8a49661b7e7b
Monotone-Revision: a891c51c800c8bcf46a3cc4342794d975147ddb5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-07-14T14:34:55 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1504,7 +1504,6 @@ function onShowCompletedTasks(event) {
|
||||
|
||||
function updateTaskStatus(event) {
|
||||
var newStatus = (this.checked ? 1 : 0);
|
||||
var http = createHTTPClient();
|
||||
|
||||
if (isSafari() && !isSafari3()) {
|
||||
newStatus = (newStatus ? 0 : 1);
|
||||
@@ -1513,12 +1512,19 @@ function updateTaskStatus(event) {
|
||||
url = (ApplicationBaseURL + this.parentNode.calendar
|
||||
+ "/" + this.parentNode.cname + "/changeStatus?status=" + newStatus);
|
||||
|
||||
var http = createHTTPClient();
|
||||
if (http) {
|
||||
// TODO: add parameter to signal that we are only interested in OK
|
||||
http.open("POST", url, false /* not async */);
|
||||
http.url = url;
|
||||
http.send("");
|
||||
// http.setRequestHeader("Content-Length", 0);
|
||||
try {
|
||||
http.send("");
|
||||
}
|
||||
catch (e) {
|
||||
/* IE7 tends to generate "tranaction aborted" errors for synchronous
|
||||
transactions returning HTTP code 204. */
|
||||
log("exception during http.send (expected on IE7)");
|
||||
}
|
||||
if (isHttpStatus204(http.status))
|
||||
refreshTasks();
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user