From 4c67f191a2def79684aeba20b1dcf6a221cba9c9 Mon Sep 17 00:00:00 2001 From: Tim Aldinger Date: Tue, 6 Oct 2026 17:48:50 +0200 Subject: [PATCH] =?UTF-8?q?erstelle=20Kategorien=20im=20frontend=20haben?= =?UTF-8?q?=20jetzt=20wie=20die=20Kategorien=20in=20list.html=20eine=20ul?= =?UTF-8?q?=20f=C3=BCr=20die=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/js/list/ShoppingCategory.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/static/js/list/ShoppingCategory.js b/src/main/resources/static/js/list/ShoppingCategory.js index 7a4bcea..345b5ee 100644 --- a/src/main/resources/static/js/list/ShoppingCategory.js +++ b/src/main/resources/static/js/list/ShoppingCategory.js @@ -15,6 +15,7 @@ export class ShoppingCategory { const span = document.createElement("span"); const deleteCategoryButton = document.createElement("button"); const deleteAllItemsCheckbox = document.createElement("input"); + const innerUl = document.createElement("ul"); li.id = this.categoryID; li.classList.add("category"); @@ -29,6 +30,7 @@ export class ShoppingCategory { li.appendChild(span); li.appendChild(deleteCategoryButton); li.appendChild(deleteAllItemsCheckbox); + li.appendChild(innerUl); return li; }