diff options
author | rstular <rok@stular.eu> | 2020-05-17 22:22:22 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-17 22:28:02 +0200 |
commit | 7b0e9737328c2dc5a0ff1bd063cd7818706256c3 (patch) | |
tree | 168a4db2131a5125cc031659b6ce80810b10c0f9 /assets/js | |
parent | styling changes (diff) | |
download | beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.gz beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.bz2 beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.lz beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.xz beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.zst beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.zip |
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/absences.js | 2 | ||||
-rw-r--r-- | assets/js/grades.js | 2 | ||||
-rw-r--r-- | assets/js/gradings.js | 2 | ||||
-rw-r--r-- | assets/js/meals.js | 4 | ||||
-rw-r--r-- | assets/js/teachers.js | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/assets/js/absences.js b/assets/js/absences.js index 2ed5fe8..5fbc622 100644 --- a/assets/js/absences.js +++ b/assets/js/absences.js @@ -49,7 +49,7 @@ async function loadAbsences(forceRefresh = false) { ]; await Promise.all(promisesToRun); // If we don't have a list of absences, query it - if (absences === null || absences === {} || forceRefresh) { + if (absences == null || absences == {} || forceRefresh) { try { let gsecInstance = new gsec(); await gsecInstance.login(username, password); diff --git a/assets/js/grades.js b/assets/js/grades.js index 4c52848..aff62e4 100644 --- a/assets/js/grades.js +++ b/assets/js/grades.js @@ -38,7 +38,7 @@ async function loadGrades(force_refresh = false) { ]; await Promise.all(promises_to_run); // If we don't have a list of grades, fetch it - if (grades === null || grades === [] || force_refresh) { + if (grades == null || grades == [] || force_refresh) { try { let gsecInstance = new gsec(); diff --git a/assets/js/gradings.js b/assets/js/gradings.js index 33fda47..b5bf7b5 100644 --- a/assets/js/gradings.js +++ b/assets/js/gradings.js @@ -88,7 +88,7 @@ async function loadGradings(force_refresh = false) { }) ]; await Promise.all(promises_to_run); - if (gradings === null || gradings === [] || gradings === -1 || force_refresh) { + if (gradings == null || gradings == [] || gradings == -1 || force_refresh) { try { let gsecInstance = new gsec(); await gsecInstance.login(username, password); diff --git a/assets/js/meals.js b/assets/js/meals.js index 0a5313a..e9b3af8 100644 --- a/assets/js/meals.js +++ b/assets/js/meals.js @@ -49,7 +49,7 @@ async function getToken(callback, callbackparams = []) { type: "POST", success: (dataauth) => { - if(dataauth === null || dataauth.error == true) { + if(dataauth == null || dataauth.error == true) { UIAlert(D("authenticationError"), "getToken(): response error or null"); localforage.setItem("logged_in_lopolis", false).then( function(){ checkLogin(); @@ -97,7 +97,7 @@ async function getMenus(dataauth, callback, callbackparams = []) { type: "POST", success: (meals) => { - if(meals === null || meals.error == true) { + if(meals == null || meals.error == true) { UIAlert( D("errorGettingMenus"), "getMenus(): response error or null"); setLoading(false); localforage.setItem("logged_in_lopolis", false).then( () => { diff --git a/assets/js/teachers.js b/assets/js/teachers.js index da0a62d..da83c06 100644 --- a/assets/js/teachers.js +++ b/assets/js/teachers.js @@ -29,7 +29,7 @@ async function loadTeachers(force_refresh = false) { ]; await Promise.all(promises_to_run); // If we don't have a list of teachers, query it - if (teachers === null || teachers === [] || force_refresh) { + if (teachers == null || teachers == [] || force_refresh) { try { let gsecInstance = new gsec(); await gsecInstance.login(username, password); |