summaryrefslogtreecommitdiff
path: root/app/list.js
diff options
context:
space:
mode:
authorlucashemi <lucasxberger@gmail.com>2023-01-25 16:21:35 -0300
committerlucashemi <lucasxberger@gmail.com>2023-01-25 16:21:35 -0300
commit110967526d14068387cf1bc8d4e78efd505b5831 (patch)
tree9009a4f630ba1255996f54726a39d858000643cc /app/list.js
parent3e9f7333f4aa0bc4818cbccc4fd3f322264e631b (diff)
export fixed
Diffstat (limited to 'app/list.js')
-rw-r--r--app/list.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/list.js b/app/list.js
index aea8949..2469dad 100644
--- a/app/list.js
+++ b/app/list.js
@@ -1,6 +1,6 @@
import { deleteButton } from "./delete.js";
import { editButton } from "./edit.js";
-import { checkboxButton } from "./check.js";
+import { checkboxButton, toggleCheck } from "./check.js";
const form = document.getElementById('form');
const list = document.getElementById('list');
@@ -10,7 +10,7 @@ jsList.forEach(element => {
createElement(element);
const tag = document.querySelector("[data-id='"+element.id+"']");
if(jsList[jsList.findIndex(el => el.id == tag.dataset.id)].done == true) {
- checkElement(tag.childNodes[1], tag.dataset.id);
+ toggleCheck(tag.childNodes[1], tag.dataset.id);
}
});