From 577ac3f463a92fe300e4688604cdc95cc20f9ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 18 Sep 2025 21:31:54 +0200 Subject: [PATCH] fix1 --- static/js/chart_controls.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/chart_controls.js b/static/js/chart_controls.js index 58cfe28..876dc93 100644 --- a/static/js/chart_controls.js +++ b/static/js/chart_controls.js @@ -74,6 +74,8 @@ document.addEventListener("DOMContentLoaded", function () { this.textContent = "Pokaż całościowo"; window.setCategorySplit(true); } + // odznaczenie wizualne zakresu + document.querySelectorAll("#chartTab .range-btn").forEach(b => b.classList.remove("active")); reloadRespectingSplit(); }); @@ -110,7 +112,10 @@ document.addEventListener("DOMContentLoaded", function () { } return; } - // monthly/quarterly/halfyearly/yearly – kubełkowanie po stronie backendu + + if (startDateInput) startDateInput.value = ""; + if (endDateInput) endDateInput.value = ""; + reloadRespectingSplit(r); }); });