working on task update by event
This commit is contained in:
@@ -104,8 +104,8 @@
|
||||
body:JSON.stringify(data)
|
||||
});
|
||||
if (resp.ok){
|
||||
children = await resp.json();
|
||||
yikes();
|
||||
children = await resp.json();
|
||||
} else {
|
||||
error(resp);
|
||||
}
|
||||
@@ -127,8 +127,6 @@
|
||||
if (resp.ok){
|
||||
yikes();
|
||||
task = await resp.json();
|
||||
project = null;
|
||||
children = null;
|
||||
if (task.show_closed) show_closed = true;
|
||||
loadChildren();
|
||||
if (task.project_id) loadProject();
|
||||
@@ -177,13 +175,6 @@
|
||||
});
|
||||
if (resp.ok){
|
||||
yikes();
|
||||
let old_task = task;
|
||||
task = await resp.json();
|
||||
if (!task.parent_id){
|
||||
task.parent = null;
|
||||
} else {
|
||||
if (task.parent_id == old_task.parent_id) task.parent = old_task.parent;
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
error(resp);
|
||||
@@ -200,7 +191,7 @@
|
||||
}
|
||||
|
||||
function updateOn(id){
|
||||
task = null;
|
||||
//task = null;
|
||||
loadTask();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user