[Pkg-owncloud-commits] [owncloud] 213/273: shade color for modified dates again, fix #9363

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 03:13:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 053b0a4063c9681608d62ed4af898a1a8465e357
Author: Jan-Christoph Borchardt <hey at jancborchardt.net>
Date:   Wed Jul 2 16:37:15 2014 +0200

    shade color for modified dates again, fix #9363
---
 apps/files/js/filelist.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index c7fccc5..c1dae4e 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",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list