diff options
author | rstular <rok@stular.eu> | 2020-05-14 18:46:32 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 18:49:51 +0200 |
commit | d10d5472956eb606093851c98944ea50ea843805 (patch) | |
tree | e844c0308021be3d921e02f65c6e40ee3d6e2bb6 | |
parent | Moved storage notice (diff) | |
download | beziapp-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 |
-rw-r--r-- | js/messaging.js | 8 | ||||
-rw-r--r-- | pages-src/messaging.bvr | 7 | ||||
-rw-r--r-- | 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 @@ <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> |