summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-20 20:15:40 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-02-20 20:15:40 +0100
commit896edd0349561ce14fe05394eea731fe9253c5cc (patch)
tree947a0b7adcbb4e8db485fa6406643a4ddf6440a3 /js
parentabsences null response text changed (diff)
downloadbeziapp-896edd0349561ce14fe05394eea731fe9253c5cc.tar
beziapp-896edd0349561ce14fe05394eea731fe9253c5cc.tar.gz
beziapp-896edd0349561ce14fe05394eea731fe9253c5cc.tar.bz2
beziapp-896edd0349561ce14fe05394eea731fe9253c5cc.tar.lz
beziapp-896edd0349561ce14fe05394eea731fe9253c5cc.tar.xz
beziapp-896edd0349561ce14fe05394eea731fe9253c5cc.tar.zst
beziapp-896edd0349561ce14fe05394eea731fe9253c5cc.zip
Diffstat (limited to 'js')
-rw-r--r--js/absences.js2
-rw-r--r--js/messaging.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/js/absences.js b/js/absences.js
index 77a6c75..3228cee 100644
--- a/js/absences.js
+++ b/js/absences.js
@@ -62,7 +62,7 @@ async function loadAbsences(force_refresh = false) {
success: function (data) {
// If data is null, the credentials were incorrect
if (data === null) {
- M.toast({ html: "No absences in this time span." });
+ M.toast({ html: "No absences in the chosen time period." });
setLoading(false);
} else {
// Save absences & populate UI
diff --git a/js/messaging.js b/js/messaging.js
index 4004147..b88e053 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -53,7 +53,7 @@ function loadDirectory() {
localforage.getItem("directory").then((stored_directory) => {
if (stored_directory === null) {
// If unable, set directory to null (so other functions know that we don't have it)
- M.toast({ html: "Name directory not set, sending disabled" });
+ M.toast({ html: "Name directory not set, sending unavailable" });
directory = null;
// Disable send button
document.getElementById("msg-send").disabled = true;
@@ -248,7 +248,7 @@ function displayMessage(id, data) {
// Function for displaying data
function displayData() {
- let msg_list = document.getElementById("msg_list");
+ let msg_list = document.getElementById("msg-list");
msg_list.innerHTML = "";
messages.forEach(element => {
if (element["zadeva"].substr(0, 14) != "beziapp-ctlmsg")