From 68f12b06618e01c423b8708a2c1d98171340caef Mon Sep 17 00:00:00 2001 From: Jeremy Kirsch Date: Mon, 18 May 2026 15:56:28 +0200 Subject: [PATCH] . --- public/index.html | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/public/index.html b/public/index.html index 8fd2a9d..997ac07 100644 --- a/public/index.html +++ b/public/index.html @@ -384,7 +384,7 @@ body::before{content:'';position:fixed;inset:0;background-image:radial-gradient(
Danksagungen · Partner · Community
@@ -501,7 +501,7 @@ body::before{content:'';position:fixed;inset:0;background-image:radial-gradient(
@@ -1019,13 +1019,7 @@ function renderCredits() { const adminBtn = document.getElementById('credits-admin-btn'); if (adminBtn) { adminBtn.style.display = currentUser?.isAdmin ? 'block' : 'none'; - // Event listener neu setzen (sicher mit clone-replace trick) - const oldBtn = document.getElementById('btn-add-credit'); - if (oldBtn) { - const newBtn = oldBtn.cloneNode(true); - newBtn.addEventListener('click', () => openCreditForm(null)); - oldBtn.parentNode.replaceChild(newBtn, oldBtn); - } + // onclick is set directly in HTML } }