Show full portal capture time on tooltips

This commit is contained in:
Daniel Cheng (鄭郁邦)
2013-02-24 22:56:16 +08:00
committed by Daniel Cheng
parent f213a481e8
commit 4ecec63a0d
2 changed files with 5 additions and 2 deletions

View File

@ -26,7 +26,10 @@ window.renderPortalDetails = function(guid) {
: null;
var playerText = player ? ['owner', player] : null;
var time = d.captured ? unixTimeToString(d.captured.capturedTime) : null;
var time = d.captured
? '<span title="' + unixTimeToString(d.captured.capturedTime, true) + '">'
+ unixTimeToString(d.captured.capturedTime) + '</span>'
: null;
var sinceText = time ? ['since', time] : null;
var linkedFields = ['fields', d.portalV2.linkedFields.length];