Merge pull request #9373 from owncloud/design-fix-modified

shade color for modified dates again, fix #9363
remotes/origin/ldap_group_count
Vincent Petry 12 years ago
commit f1f66ff686
  1. 9
      apps/files/js/filelist.js

@ -675,8 +675,13 @@
}).text(simpleSize);
tr.append(td);
// date column
var modifiedColor = Math.round((Math.round((new Date()).getTime() / 1000) - mtime)/60/60/24*5);
// date column (1000 milliseconds to seconds, 60 seconds, 60 minutes, 24 hours)
// difference in days multiplied by 5 - brightest shade for files older than 32 days (160/5)
var modifiedColor = Math.round(((new Date()).getTime() - mtime )/1000/60/60/24*5 );
// 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",

Loading…
Cancel
Save