Monotone-Parent: b37028587e6fb2604e3892c8f3d188afd477de30

Monotone-Revision: ef922ac4f7f0f858587fde2408df0fd6476496c1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-17T19:49:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-17 19:49:47 +00:00
parent 92f9385a4e
commit 5c08272cea
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2006-10-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/SchedulerUI.js: when the user deselects
all calendars, select his entry.
2006-10-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/SchedulerUI.js: edit and delete events

View File

@@ -689,20 +689,25 @@ function onHideCompletedTasks(node)
function updateTaskStatus(node)
{
var taskId = node.parentNode.getAttribute("id");
var taskOwner = node.parentNode.getAttribute("owner");
var newStatus = (node.checked ? 1 : 0);
// log ("update task status: " + taskId);
var http = createHTTPClient();
url = CalendarBaseURL + taskId + "/changeStatus?status=" + newStatus;
url = (UserFolderURL + "../" + taskOwner + "/Calendar/"
+ taskId + "/changeStatus?status=" + newStatus);
if (http) {
// log ("url: " + url);
// TODO: add parameter to signal that we are only interested in OK
http.url = url;
http.open("GET", url, false /* not async */);
http.send("");
if (http.status == 200)
refreshTasks();
}
} else
log ("no http client?");
return false;
}