mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-28 20:56:24 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user