summaryrefslogtreecommitdiffstats
path: root/js/messaging.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/messaging.js')
-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