summaryrefslogtreecommitdiffstats
path: root/files/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-30 15:42:34 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-30 15:42:34 +0200
commitb2f1d26d9312ece3a370d3af4672ad55f288bf31 (patch)
tree36ecc5b4b2bed6b9d5435143493c44ea0774ac61 /files/js
parent103d45539d4db6b5c646df46acd487a05c121290 (diff)
downloadnextcloud-server-b2f1d26d9312ece3a370d3af4672ad55f288bf31.tar.gz
nextcloud-server-b2f1d26d9312ece3a370d3af4672ad55f288bf31.zip
fixed color calculation again
Diffstat (limited to 'files/js')
-rw-r--r--files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js
index 359725cdc0d..3f9b3984465 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+='<td class="filesize" title="'+humanFileSize(size)+'" style="color:rgb('+sizeColor+','+sizeColor+','+sizeColor+')">'+simpleSize+'</td>';