replacing site-local error display by global error display
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
timetrack.running = track;
|
||||
yikes();
|
||||
} else {
|
||||
error(await resp.text());
|
||||
error(resp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
children = await resp.json();
|
||||
yikes();
|
||||
} else {
|
||||
error(await resp.text());
|
||||
error(resp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
if (resp.ok){
|
||||
task.parent = await resp.json();
|
||||
} else {
|
||||
error(await resp.text());
|
||||
error(resp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
if (task.project_id) loadProject();
|
||||
if (task.parent_task_id) loadParent();
|
||||
} else {
|
||||
error(await resp.text());
|
||||
error(resp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
if (task.parent_id == old_task.parent_id) task.parent = old_task.parent;
|
||||
return true;
|
||||
} else {
|
||||
error(await resp.text());
|
||||
error(resp);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user