From 7b0e9737328c2dc5a0ff1bd063cd7818706256c3 Mon Sep 17 00:00:00 2001 From: rstular Date: Sun, 17 May 2020 22:22:22 +0200 Subject: Bug fix attempt --- assets/css/styles.css | 2 +- assets/js/absences.js | 2 +- assets/js/grades.js | 2 +- assets/js/gradings.js | 2 +- assets/js/meals.js | 4 ++-- assets/js/teachers.js | 2 +- dist/css/styles.css | 2 +- dist/js/absences.js | 2 +- dist/js/grades.js | 2 +- dist/js/gradings.js | 2 +- dist/js/meals.js | 4 ++-- dist/js/teachers.js | 2 +- dist/pages/about.html | 2 +- dist/sw.js | 4 ++-- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/assets/css/styles.css b/assets/css/styles.css index f1160f2..b372c5e 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -273,7 +273,7 @@ span { color: var(--color-text); } -div { +div:not(.fc-time, .fc-title) { color: var(--color-text); } 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); diff --git a/dist/css/styles.css b/dist/css/styles.css index f1160f2..b372c5e 100644 --- a/dist/css/styles.css +++ b/dist/css/styles.css @@ -273,7 +273,7 @@ span { color: var(--color-text); } -div { +div:not(.fc-time, .fc-title) { color: var(--color-text); } diff --git a/dist/js/absences.js b/dist/js/absences.js index 2ed5fe8..5fbc622 100644 --- a/dist/js/absences.js +++ b/dist/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/dist/js/grades.js b/dist/js/grades.js index 4c52848..aff62e4 100644 --- a/dist/js/grades.js +++ b/dist/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/dist/js/gradings.js b/dist/js/gradings.js index 33fda47..b5bf7b5 100644 --- a/dist/js/gradings.js +++ b/dist/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/dist/js/meals.js b/dist/js/meals.js index 0a5313a..e9b3af8 100644 --- a/dist/js/meals.js +++ b/dist/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/dist/js/teachers.js b/dist/js/teachers.js index da0a62d..da83c06 100644 --- a/dist/js/teachers.js +++ b/dist/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); diff --git a/dist/pages/about.html b/dist/pages/about.html index f63ceb4..42c8392 100644 --- a/dist/pages/about.html +++ b/dist/pages/about.html @@ -142,7 +142,7 @@

- ^HEAD bd6ad8bf4ef14d74d087879031fc996fdb22412f + ^HEAD 16d4d4b9f9b35edc7164cd5662ded7377b6960a9

diff --git a/dist/sw.js b/dist/sw.js index a34abe4..4a8c8e7 100644 --- a/dist/sw.js +++ b/dist/sw.js @@ -3,8 +3,8 @@ // Change version to cause cache refresh -const static_cache_name = "site-static-1.0.13-beta-bd6ad8b"; -// latest commit is bd6ad8bf4ef14d74d087879031fc996fdb22412f +const static_cache_name = "site-static-1.0.13-beta-16d4d4b"; +// latest commit is 16d4d4b9f9b35edc7164cd5662ded7377b6960a9 // Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js // sw.js NE SME BITI CACHAN, ker vsebuje verzijo! -- cgit v1.2.3