From 110967526d14068387cf1bc8d4e78efd505b5831 Mon Sep 17 00:00:00 2001 From: lucashemi Date: Wed, 25 Jan 2023 16:21:35 -0300 Subject: export fixed --- app/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/list.js') 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); } }); -- cgit v1.2.3-18-g5258