diff --git a/src/main/resources/static/js/pages/index/index.js b/src/main/resources/static/js/pages/index/index.js index fddc68e..09ddba9 100644 --- a/src/main/resources/static/js/pages/index/index.js +++ b/src/main/resources/static/js/pages/index/index.js @@ -10,17 +10,12 @@ async function addList(listName) { if (listAsJson) ui.addList(listAsJson); } -function fillList() { - document.querySelectorAll('.shoppingListOverview__shoppingList') - .forEach(list => { - shoppingLists.push(new ShoppingList(list.id)); - console.log(list.id); - }); +function editList() { } -function deleteList(id) { - fetch(`/api/list/${id}`, { method: "DELETE" }).then(r => console.log("Liste entfernt")) +function deleteList() { + }