$result = new stdClass;
$result->list = $tasklist;
$result->type = $tasktype;
+ $result->sig = Horde_Util::getFormData('sig');
if (count($tasks)) {
$result->tasks = $tasks;
}
if (Object.isUndefined(this.tcache.get(type)) ||
Object.isUndefined(this.tcache.get(type).get(list))) {
loading = true;
- this.startLoading('tasks:' + list, type, '');
+ this.startLoading('tasks:' + type + list, tasktype, '');
this._storeTasksCache($H(), type, list);
this.doAction('ListTasks',
{ 'type': type,
+ 'sig' : tasktype,
'list': list },
function(r) {
this._loadTasksCallback(r, tasktype);
// Check if this is the still the result of the most current request.
if (this.view != 'tasks' ||
- this.eventsLoading['tasks:' + r.response.list] != r.response.type) {
+ this.eventsLoading['tasks:' + r.response.type + r.response.list] != r.response.sig) {
return;
}
this._insertTasks(tasktype, r.response.list);
},
/**
- * Toggles the CSS class to show that a tasks is completed/uncompleted.
+ * Toggles the CSS class to show that a task is completed/uncompleted.
*
* @param string taskid The id of the task.
*/