errmsg hinzugefügt
This commit is contained in:
1 parent
8c347d124a
commit
3f5856c86b
1 file changed
+3
-2
@@ -28,8 +28,9 @@ async function addCategory(categoryName) {
|
||||
}
|
||||
|
||||
async function deleteItem(li) {
|
||||
const json = await handleResponse(api.deleteItem(li.dataset.id), `error deleting item`);
|
||||
console.log(`deleting item ${li.dataset.id}`)
|
||||
|
||||
const json = await handleResponse(api.deleteItem(li.dataset.id), `error deleting item`);
|
||||
if (json) ui.deleteItem(li);
|
||||
}
|
||||
|
||||
@@ -131,8 +132,8 @@ function init() {
|
||||
api.editItem(item.dataset.id, { isDone: e.target.checked });
|
||||
}
|
||||
});
|
||||
|
||||
console.log("javascript initialized!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user