From 83a4073616f9821a8ebf1df0e18e332490503eca Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 25 Feb 2010 16:32:17 +0100 Subject: webinterface improvments + server crash fix --- module/web/media/default/css/default.css | 3 +++ module/web/media/default/js/funktions.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'module/web/media/default') diff --git a/module/web/media/default/css/default.css b/module/web/media/default/css/default.css index 3c4762012..986e9a4bc 100644 --- a/module/web/media/default/css/default.css +++ b/module/web/media/default/css/default.css @@ -1005,6 +1005,9 @@ a.backlink { a.play { background:transparent url(/media/default/img/control_play.png) 0px 1px no-repeat; } +a.time { + background:transparent url(/media/default/img/status_None.png) 0px 1px no-repeat; +} a.play:hover { background:transparent url(/media/default/img/control_play_blue.png) 0px 1px no-repeat; } 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) { -- cgit v1.2.3