From b2f1d26d9312ece3a370d3af4672ad55f288bf31 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 30 Jul 2011 15:42:34 +0200 Subject: [PATCH] fixed color calculation again --- files/js/filelist.js | 2 +- files/templates/part.list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/js/filelist.js b/files/js/filelist.js index 359725cdc0..3f9b398446 100644 --- a/files/js/filelist.js +++ b/files/js/filelist.js @@ -23,7 +23,7 @@ FileList={ }else{ simpleSize='Pending'; } - sizeColor = Math.round(200-size/1024*1024*2); + sizeColor = Math.round(200-size/(1024*1024)*2); lastModifiedTime=Math.round(lastModified.getTime() / 1000); modifiedColor=Math.round((Math.round((new Date()).getTime() / 1000)-lastModifiedTime)/60/60/24*14); html+=''+simpleSize+''; diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 22edd9351c..93ed70990b 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -1,7 +1,7 @@ >Nothing in here. Upload something!