From 2015065af4d09dbf3888ae3a0876c9073cd0ef4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 18 Sep 2025 22:05:44 +0200 Subject: [PATCH] cofniecie zmian --- static/js/chart_controls.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/static/js/chart_controls.js b/static/js/chart_controls.js index 1fd507b..cc5dcf8 100644 --- a/static/js/chart_controls.js +++ b/static/js/chart_controls.js @@ -76,18 +76,8 @@ document.addEventListener("DOMContentLoaded", function () { } // porzucenie zakresu - //document.querySelectorAll("#chartTab .range-btn").forEach(b => b.classList.remove("active")); - - // pobierz wartości z inputów - const sd = startDateInput?.value; - const ed = endDateInput?.value; - if(sd && ed) { - window.setCategorySplit(true); - window.loadExpenses('monthly', sd, ed); // lub odpowiednio, jeśli dzienny lub inny tryb - } else { - reloadRespectingSplit(); // fallback, jeśli brak wartości - } - + document.querySelectorAll("#chartTab .range-btn").forEach(b => b.classList.remove("active")); + reloadRespectingSplit(); }); // ——— Własny zakres ———