summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/messaging.js8
-rw-r--r--pages-src/messaging.bvr7
-rw-r--r--pages/messaging.html7
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 @@
<div class="container">
<div class="row">
+ <br>
<div class="row grey-text text-darken-2" id="storage-bar">
<div class="col s6">
- <x-su>messageStorageUsed</x-su>: <span id="#storage-stats">0/120</span> <x-sl>messages</x-sl>
+ <x-su>messageStorageUsed</x-su>: <span id="storage-stats">0/120</span> <x-sl>messages</x-sl>
</div>
<div class="progress col s6">
<div class="determinate" id="storage-progressbar" style="width: 0%"></div>
@@ -100,7 +101,7 @@
<div class="row">
- <div class="col 11s 11m">
+ <div class="col s10 m11">
<div class="input-field">
<i class="material-icons prefix">subject</i>
<input id="msg-subject" type="text" class="">
@@ -108,7 +109,7 @@
</div>
</div>
- <div class="col 1s 1m">
+ <div class="col s2 m1">
<button class="btn waves-effect waves-light" id="msg-add-photo" type="button">
<i class="material-icons" style="margin: 0 auto">add_a_photo</i>
</button>
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 @@
<div class="container">
<div class="row">
+ <br>
<div class="row grey-text text-darken-2" id="storage-bar">
<div class="col s6">
- <x-su>messageStorageUsed</x-su>: <span id="#storage-stats">0/120</span> <x-sl>messages</x-sl>
+ <x-su>messageStorageUsed</x-su>: <span id="storage-stats">0/120</span> <x-sl>messages</x-sl>
</div>
<div class="progress col s6">
<div class="determinate" id="storage-progressbar" style="width: 0%"></div>
@@ -122,7 +123,7 @@
<div class="row">
- <div class="col 11s 11m">
+ <div class="col s10 m11">
<div class="input-field">
<i class="material-icons prefix">subject</i>
<input id="msg-subject" type="text" class="">
@@ -130,7 +131,7 @@
</div>
</div>
- <div class="col 1s 1m">
+ <div class="col s2 m1">
<button class="btn waves-effect waves-light" id="msg-add-photo" type="button">
<i class="material-icons" style="margin: 0 auto">add_a_photo</i>
</button>