summaryrefslogtreecommitdiffstats
path: root/module/web/media/default/js/funktions.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-25 16:32:17 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-25 16:32:17 +0100
commit83a4073616f9821a8ebf1df0e18e332490503eca (patch)
tree5c045ed9923dbc05277b36686544958a2afbead8 /module/web/media/default/js/funktions.js
parentgui fix, better click and load support (diff)
downloadpyload-83a4073616f9821a8ebf1df0e18e332490503eca.tar.xz
webinterface improvments + server crash fix
Diffstat (limited to 'module/web/media/default/js/funktions.js')
-rw-r--r--module/web/media/default/js/funktions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/media/default/js/funktions.js b/module/web/media/default/js/funktions.js
index 9ca165b36..4c42ee336 100644
--- a/module/web/media/default/js/funktions.js
+++ b/module/web/media/default/js/funktions.js
@@ -12,7 +12,7 @@ function HumanFileSize(size)
var loga = Math.log(size)/Math.log(1024);
var i = Math.floor(loga);
var a = Math.pow(1024, i);
- return Math.round( size / a , 2) + " " + filesizename[i];
+ return (size == 0) ? "0 KB" : (Math.round( size / a , 2) + " " + filesizename[i]);
}
Array.prototype.remove = function(from, to) {