d
This commit is contained in:
parent
a41e619527
commit
661dec47d4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user