sortowanie_w_mass_add #10

Merged
gru merged 90 commits from sortowanie_w_mass_add into master 2025-09-02 17:08:55 +02:00
Showing only changes of commit 95cc506abf - Show all commits

View File

@@ -9,10 +9,14 @@ document.addEventListener("DOMContentLoaded", function () {
function loadExpenses(range = "last30days", startDate = null, endDate = null) {
let url = '/expenses_data?range=' + range;
const showAllCheckbox = document.getElementById("showAllLists");
if (showAllCheckbox && showAllCheckbox.checked) {
if (showAllCheckbox) {
url += showAllCheckbox.checked ? '&show_all=true' : '&show_all=false';
} else {
url += '&show_all=true';
}
}
if (startDate && endDate) {
url += `&start_date=${startDate}&end_date=${endDate}`;
}