diff options
Diffstat (limited to 'js/timetable.js')
-rw-r--r-- | js/timetable.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/timetable.js b/js/timetable.js index 82baba9..2b718ad 100644 --- a/js/timetable.js +++ b/js/timetable.js @@ -224,13 +224,13 @@ function eventClickHandler(eventClickInfo) { let lesson_class = lesson_metadata["class"]; let lesson_duration = lesson_metadata["start"] + " - " + lesson_metadata["end"]; - document.getElementById("lesson-subject").innerText = lesson_subject; - document.getElementById("lesson-teacher").innerText = lesson_teacher; - document.getElementById("lesson-class").innerText = lesson_class; - document.getElementById("lesson-classroom").innerText = lesson_classroom; - document.getElementById("lesson-duration").innerText = lesson_duration; + $("#lesson-subject").text(lesson_subject); + $("#lesson-teacher").text(lesson_teacher); + $("#lesson-class").text(lesson_class); + $("#lesson-classroom").text(lesson_classroom); + $("#lesson-duration").text(lesson_duration); - const modal = document.querySelectorAll('.side-modal')[0]; + const modal = document.querySelectorAll(".side-modal")[0]; M.Sidenav.getInstance(modal).open(); } |