summaryrefslogtreecommitdiffstats
path: root/js/timetable.js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-09 15:25:36 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-09 15:25:36 +0100
commit711ab04789b3c3380ba1dd09a32774c17e93de4c (patch)
treeb0e6498eb204d5cb7f352528f477551add901f87 /js/timetable.js
parentsome messaging fixes (diff)
downloadbeziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.gz
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.bz2
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.lz
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.xz
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.tar.zst
beziapp-711ab04789b3c3380ba1dd09a32774c17e93de4c.zip
Diffstat (limited to 'js/timetable.js')
-rw-r--r--js/timetable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/timetable.js b/js/timetable.js
index 30ddffa..0f85f24 100644
--- a/js/timetable.js
+++ b/js/timetable.js
@@ -109,7 +109,7 @@ async function loadTimetable(date_object, force_refresh = false) {
await Promise.all(promises_to_run);
- if (force_refresh || timetable === null || !(date_string in timetable)) {
+ if (force_refresh || timetable == null || !(date_string in timetable)) {
$.ajax({
url: API_ENDPOINT,
crossDomain: true,
@@ -294,4 +294,4 @@ document.addEventListener("DOMContentLoaded", () => {
// Setup side modal
const modals = document.querySelectorAll('.side-modal');
M.Sidenav.init(modals, { edge: 'left', draggable: false });
-}); \ No newline at end of file
+});