diff options
author | rstular <rok@stular.eu> | 2020-05-15 00:41:21 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-15 00:41:21 +0200 |
commit | b37cb51cb2e22bfdc57e89761a878824c8cab5f9 (patch) | |
tree | 7bdac441606810c363efc0919923b5fbcd621837 | |
parent | Indentation fix (diff) | |
parent | idrk (diff) | |
download | beziapp-b37cb51cb2e22bfdc57e89761a878824c8cab5f9.tar beziapp-b37cb51cb2e22bfdc57e89761a878824c8cab5f9.tar.gz beziapp-b37cb51cb2e22bfdc57e89761a878824c8cab5f9.tar.bz2 beziapp-b37cb51cb2e22bfdc57e89761a878824c8cab5f9.tar.lz beziapp-b37cb51cb2e22bfdc57e89761a878824c8cab5f9.tar.xz beziapp-b37cb51cb2e22bfdc57e89761a878824c8cab5f9.tar.zst beziapp-b37cb51cb2e22bfdc57e89761a878824c8cab5f9.zip |
-rw-r--r-- | global.bvr | 1 | ||||
-rw-r--r-- | js/messaging.js | 2 | ||||
-rw-r--r-- | js/setup-storage.js | 4 |
3 files changed, 3 insertions, 4 deletions
@@ -1,3 +1,2 @@ <@?s bvr_include_path pages-src/ pages-src/misc/@> <@?s app_version 1.0.13-beta@> -# adding something to remove DO NOT MERGE commit message diff --git a/js/messaging.js b/js/messaging.js index 646c088..56812e4 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 0c85a89..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", [{},{},{}]), // 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,...) |