From 6a936c70368d6a1ea0cfc1b265c1048b4ee7fae1 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 11 Nov 2024 11:25:30 +0100 Subject: [PATCH] =?UTF-8?q?fix=20f=C3=BCr=20HTML-Legende=20nach=20Rank-Upd?= =?UTF-8?q?ate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/elotracker/chart-integration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/elotracker/chart-integration.js b/public/elotracker/chart-integration.js index e68092d..357ad75 100644 --- a/public/elotracker/chart-integration.js +++ b/public/elotracker/chart-integration.js @@ -579,6 +579,8 @@ async function update_leaderboard_elements() { document.querySelector(".leaderboard-list").outerHTML = leaderboard_list; // reapply EventListeners document.querySelectorAll("button.leaderboard-element").forEach(element => element.addEventListener("mousedown", toggle_leaderboard_chart)); + // Legende leeren (wird mit neuen Charts neu generiert) + document.querySelectorAll(".chart-legend").forEach(element => element.innerHTML = ""); // recreate charts create_charts(); })