diff options
author | rstular <rok@stular.eu> | 2020-05-14 22:30:42 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 22:30:42 +0200 |
commit | acecb7500fbf2a4df39bc27fd367629971ce7dfc (patch) | |
tree | 0a4ec080fc623605b45c2b384ae73af8fccc2558 /js | |
parent | Added gitignore (diff) | |
parent | naredil skelet DB strukture messages (TypeError: Cannot read property '0' of null at messaging.js:129) (diff) | |
download | beziapp-acecb7500fbf2a4df39bc27fd367629971ce7dfc.tar beziapp-acecb7500fbf2a4df39bc27fd367629971ce7dfc.tar.gz beziapp-acecb7500fbf2a4df39bc27fd367629971ce7dfc.tar.bz2 beziapp-acecb7500fbf2a4df39bc27fd367629971ce7dfc.tar.lz beziapp-acecb7500fbf2a4df39bc27fd367629971ce7dfc.tar.xz beziapp-acecb7500fbf2a4df39bc27fd367629971ce7dfc.tar.zst beziapp-acecb7500fbf2a4df39bc27fd367629971ce7dfc.zip |
Diffstat (limited to 'js')
-rw-r--r-- | js/messaging.js | 2 | ||||
-rw-r--r-- | js/setup-storage.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/messaging.js b/js/messaging.js index 86d90e7..d3ebdd0 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -232,7 +232,7 @@ async function deleteMsg(id) { "u": username, "p": password, "m": "izbrisisporocilo", - "a": id.replace(/_/g, "|") + "a": id }, dataType: "json", cache: false, diff --git a/js/setup-storage.js b/js/setup-storage.js index 0fe3fef..0c85a89 100644 --- a/js/setup-storage.js +++ b/js/setup-storage.js @@ -14,7 +14,7 @@ async function setupStorage(force = false) { localforage.setItem("gradings", []), localforage.setItem("grades", []), localforage.setItem("absences", {}), - localforage.setItem("messages", {}), + localforage.setItem("messages", [{},{},{}]), // see messages.js:129, commit 8eb9ca9caca30fbbe023243657535ab4088be377 localforage.setItem("directory", {}), localforage.setItem("meals", {}) ]; |