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); }); });