summaryrefslogtreecommitdiffstats
path: root/js/messaging.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-14 18:46:32 +0200
committerrstular <rok@stular.eu>2020-05-14 18:49:51 +0200
commitd10d5472956eb606093851c98944ea50ea843805 (patch)
treee844c0308021be3d921e02f65c6e40ee3d6e2bb6 /js/messaging.js
parentMoved storage notice (diff)
downloadbeziapp-d10d5472956eb606093851c98944ea50ea843805.tar
beziapp-d10d5472956eb606093851c98944ea50ea843805.tar.gz
beziapp-d10d5472956eb606093851c98944ea50ea843805.tar.bz2
beziapp-d10d5472956eb606093851c98944ea50ea843805.tar.lz
beziapp-d10d5472956eb606093851c98944ea50ea843805.tar.xz
beziapp-d10d5472956eb606093851c98944ea50ea843805.tar.zst
beziapp-d10d5472956eb606093851c98944ea50ea843805.zip
Diffstat (limited to '')
-rw-r--r--js/messaging.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/messaging.js b/js/messaging.js
index 0768a49..c34e242 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -311,6 +311,10 @@ function displayData(messageType) {
break;
}
+ // $("#storage-bar").show();
+ $("#storage-progressbar").width(Number(Number(getNumMessages(messageType) / 120) * 100).toFixed(2) + "%");
+ $("#storage-stats").text(`${getNumMessages(messageType)}/120`);
+
let msg_list = $(div_selector);
msg_list.html("");
messages[messageType].forEach(element => {
@@ -354,10 +358,6 @@ function displayData(messageType) {
`);
}
});
-
- $("#storage-bar").show();
- $("#storage-progressbar").width(Number(Number(getNumMessages(messageType) / 120) * 100).toFixed(2) + "%");
- $("#storage-stats").html(`${getNumMessages(messageType)}/120`);
}
// -1 = cumulative