fix für HTML-Legende nach Rank-Update

main
Simon Lang 2 months ago
parent 168fb55cfa
commit 6a936c7036
  1. 2
      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();
})

Loading…
Cancel
Save