diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-07-02 16:37:15 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-07-02 16:37:15 +0200 |
commit | 053b0a4063c9681608d62ed4af898a1a8465e357 (patch) | |
tree | 8b140a24c09dd5d7d86a1d32999927b697b51481 | |
parent | 59629e688c3cc470279576524eac93041c253147 (diff) | |
download | nextcloud-server-053b0a4063c9681608d62ed4af898a1a8465e357.tar.gz nextcloud-server-053b0a4063c9681608d62ed4af898a1a8465e357.zip |
shade color for modified dates again, fix #9363
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index c7fccc5dd66..c1dae4efdcc 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -676,7 +676,11 @@ tr.append(td); // date column - var modifiedColor = Math.round((Math.round((new Date()).getTime() / 1000) - mtime)/60/60/24*5); + var modifiedColor = Math.round(((Math.round((new Date()).getTime()) - mtime)/60/60/24*5) / 1000); + // ensure that the brightest color is still readable + if (modifiedColor >= '160') { + modifiedColor = 160; + } td = $('<td></td>').attr({ "class": "date" }); td.append($('<span></span>').attr({ "class": "modified", |