aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_cloud.js
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-05 15:40:10 -0700
committerredmatrix <git@macgirvin.com>2016-08-05 15:40:10 -0700
commit9068ae68ad59249df92458626808673c96b174f1 (patch)
treef45d6c8adc857f1df3bf368d0118fc83607eb91c /view/js/mod_cloud.js
parenteeabf514eab20523b847c38cf5befb7f040b7d72 (diff)
parent1bff63bd2e5d1423034094ee9bfc59c2ddb2bd53 (diff)
downloadvolse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.tar.gz
volse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.tar.bz2
volse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'view/js/mod_cloud.js')
-rw-r--r--view/js/mod_cloud.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js
index e56ec2a81..5b3c78bed 100644
--- a/view/js/mod_cloud.js
+++ b/view/js/mod_cloud.js
@@ -100,13 +100,13 @@ function prepareHtml(f, i) {
}
function formatSizeUnits(bytes){
- if (bytes>=1000000000) {bytes=(bytes/1000000000).toFixed(2)+' GB';}
- else if (bytes>=1000000) {bytes=(bytes/1000000).toFixed(2)+' MB';}
- else if (bytes>=1000) {bytes=(bytes/1000).toFixed(2)+' KB';}
- else if (bytes>1) {bytes=bytes+' bytes';}
- else if (bytes==1) {bytes=bytes+' byte';}
- else {bytes='0 byte';}
- return bytes;
+ if (bytes>=1000000000) {bytes=(bytes/1000000000).toFixed(2)+' GB';}
+ else if (bytes>=1000000) {bytes=(bytes/1000000).toFixed(2)+' MB';}
+ else if (bytes>=1000) {bytes=(bytes/1000).toFixed(2)+' KB';}
+ else if (bytes>1) {bytes=bytes+' bytes';}
+ else if (bytes==1) {bytes=bytes+' byte';}
+ else {bytes='0 byte';}
+ return bytes;
}
// this is basically a js port of include/text.php getIconFromType() function