v9.17: remove graph-modal event listeners (element not in DOM)

This commit is contained in:
Naeel
2026-04-16 17:39:23 +03:00
parent 5a9f99fa88
commit a870903c8d
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -1272,15 +1272,9 @@ function initApp(){
document.getElementById("btn-login").addEventListener("click", doLogin);
document.getElementById("btn-refresh").addEventListener("click", loadAllDetails);
document.getElementById("btn-running-graph").addEventListener("click", openRunningGraph);
document.getElementById("btn-theme").addEventListener("click", toggleTheme);
document.getElementById("btn-close-graph").addEventListener("click", closeRunningGraph);
document.getElementById("btn-exit").addEventListener("click", doLogout);
document.getElementById("graph-modal").addEventListener("click", function(e){
if(e.target && e.target.id === "graph-modal") closeRunningGraph();
});
applyTheme(localStorage.getItem("dashboard_theme") || "dark");
var envSelect = document.getElementById("deck-env");