From 0baceb14c60f7b4adc0a9de2d25d602b7f6d49ef Mon Sep 17 00:00:00 2001 From: Vibe Nuage Agent Date: Fri, 5 Jun 2026 18:48:49 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Buttons=20reagieren=20nicht=20auf=20Klic?= =?UTF-8?q?ks=20-=20Event-Listener=20werden=20jetzt=20sofort=20registriert?= =?UTF-8?q?,=20nicht=20erst=20nach=20dem=20Laden=20der=20Daten.=20Entfernt?= =?UTF-8?q?=20onclick-Attribute=20aus=20HTML,=20die=20zu=20Konflikten=20f?= =?UTF-8?q?=C3=BChren=20k=C3=B6nnen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: trevor1969 --- app.js | 8 ++++++-- index.html | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 8685a61..345b918 100644 --- a/app.js +++ b/app.js @@ -226,8 +226,11 @@ class TeeTracker { // Initialize this.initStorage(); + this.setupEventListeners(); this.loadData().then(() => { - this.init(); + this.renderAll(); + this.initCharts(); + this.updateSettingsStats(); }); } @@ -631,7 +634,8 @@ class TeeTracker { // ============================================ init() { - this.setupEventListeners(); + // Initialization is now handled in constructor + // This method is kept for backward compatibility this.renderAll(); this.initCharts(); this.updateSettingsStats(); diff --git a/index.html b/index.html index dc42916..bbbcaad 100644 --- a/index.html +++ b/index.html @@ -386,8 +386,8 @@