fix1
This commit is contained in:
@@ -140,12 +140,24 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
reloadRespectingSplit();
|
||||
});
|
||||
|
||||
|
||||
// ——— Inicjalizacja ———
|
||||
// Podpowiedź dat do inputów
|
||||
|
||||
|
||||
//if (startDateInput && endDateInput) {
|
||||
// startDateInput.value = iso(daysAgo(7));
|
||||
// endDateInput.value = iso(today());
|
||||
//}
|
||||
|
||||
if (startDateInput && endDateInput) {
|
||||
startDateInput.value = iso(daysAgo(7));
|
||||
endDateInput.value = iso(today());
|
||||
const now = new Date();
|
||||
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
||||
|
||||
startDateInput.value = iso(startOfMonth);
|
||||
endDateInput.value = iso(now);
|
||||
}
|
||||
|
||||
setActiveTimeSplit("daily");
|
||||
reloadRespectingSplit();
|
||||
});
|
||||
|
Reference in New Issue
Block a user