From 5a48acba2f430ce88c1517ad43b21b9efea43265 Mon Sep 17 00:00:00 2001 From: Tim Aldinger Date: Fri, 9 Oct 2026 21:33:38 +0200 Subject: [PATCH] =?UTF-8?q?vorabgreifen=20f=C3=BCr=20bearbeiten=20und=20l?= =?UTF-8?q?=C3=B6schen=20von=20listen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/js/pages/index/index.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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() { + }