summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-14 22:41:27 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-14 22:41:27 +0200
commit569c9bc547424c2f6aea02ea5e660f83cebe8af9 (patch)
tree0194d4d9a1778c94ca8514fa0f232e81f197d6a5 /js
parentMerge branch 'dev' of https://github.com/beziapp/beziapp.github.io into dev (diff)
downloadbeziapp-569c9bc547424c2f6aea02ea5e660f83cebe8af9.tar
beziapp-569c9bc547424c2f6aea02ea5e660f83cebe8af9.tar.gz
beziapp-569c9bc547424c2f6aea02ea5e660f83cebe8af9.tar.bz2
beziapp-569c9bc547424c2f6aea02ea5e660f83cebe8af9.tar.lz
beziapp-569c9bc547424c2f6aea02ea5e660f83cebe8af9.tar.xz
beziapp-569c9bc547424c2f6aea02ea5e660f83cebe8af9.tar.zst
beziapp-569c9bc547424c2f6aea02ea5e660f83cebe8af9.zip
Diffstat (limited to 'js')
-rw-r--r--js/messaging.js2
-rw-r--r--js/setup-storage.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/js/messaging.js b/js/messaging.js
index d3ebdd0..021e4ea 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -321,7 +321,7 @@ function displayData(messageType) {
let msg_list = $(div_selector);
msg_list.html("");
- messages[messageType].forEach(element => {
+ messages[messageType.toString()].forEach(element => {
if (!element["zadeva"].startsWith("beziapp-ctlmsg")) {
msg_list.append(`
diff --git a/js/setup-storage.js b/js/setup-storage.js
index c0d6705..a3b7cdd 100644
--- a/js/setup-storage.js
+++ b/js/setup-storage.js
@@ -14,8 +14,8 @@ async function setupStorage(force = false) {
localforage.setItem("gradings", []),
localforage.setItem("grades", []),
localforage.setItem("absences", {}),
- localforage.setItem("messages", { "0": {}, "1": {}, "2": {}}), // see messages.js:129, commit 8eb9ca9caca30fbbe023243657535ab4088be377
- localforage.setItem("directory", {}),
+ localforage.setItem("messages", { "0": [], "1": [], "2": []}), // see messages.js:129, commit 8eb9ca9caca30fbbe023243657535ab4088be377
+ localforage.setItem("directory", {}), //\\ well I could remember my own code but I didn't.
localforage.setItem("meals", {})
];
if(logged_in && force == false) { // torej, če je že bila prijava narejena, ne posodobi backwards-compatible vrednosti (username, password,...)