This commit is contained in:
Sundog Jones 2024-09-09 11:59:44 -04:00
parent a41e619527
commit 661dec47d4

View File

@ -640,7 +640,7 @@
const previous_day_schedule = (e) => {
e.preventDefault();
const day = Date.parse(e.target.parent.getAttribute("data-day"));
const day = Date.parse(document.querySelector("#current_day_indicator").getAttribute("data-day"));
console.dir(day);
day.setDate(day.getDate() - 1);
init_schedules(day);
@ -648,7 +648,7 @@
const next_day_schedule = (e) => {
e.preventDefault();
console.dir(e.target);
const day = Date.parse(e.target.parent.getAttribute("data-day"));
const day = Date.parse(document.querySelector("#current_day_indicator").getAttribute("data-day"));
console.dir(day);
day.setDate(day.getDate() + 1);
init_schedules(day);