From d10d5472956eb606093851c98944ea50ea843805 Mon Sep 17 00:00:00 2001 From: rstular Date: Thu, 14 May 2020 18:46:32 +0200 Subject: Bug fixes --- js/messaging.js | 8 ++++---- pages-src/messaging.bvr | 7 ++++--- pages/messaging.html | 7 ++++--- 3 files changed, 12 insertions(+), 10 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 diff --git a/pages-src/messaging.bvr b/pages-src/messaging.bvr index 83c61a9..c9764b9 100644 --- a/pages-src/messaging.bvr +++ b/pages-src/messaging.bvr @@ -51,9 +51,10 @@
+
- messageStorageUsed: 0/120 messages + messageStorageUsed: 0/120 messages
@@ -100,7 +101,7 @@
-
+
subject @@ -108,7 +109,7 @@
-
+
diff --git a/pages/messaging.html b/pages/messaging.html index ed733af..cd75e65 100644 --- a/pages/messaging.html +++ b/pages/messaging.html @@ -73,9 +73,10 @@
+
- messageStorageUsed: 0/120 messages + messageStorageUsed: 0/120 messages
@@ -122,7 +123,7 @@
-
+
subject @@ -130,7 +131,7 @@
-
+
-- cgit v1.2.3