update title for new posts as well

This commit is contained in:
barisusakli
2015-08-17 13:19:20 -04:00
parent 6db33f5641
commit f4dd0c14ae

View File

@@ -255,7 +255,9 @@ define('forum/topic/posts', [
app.replaceSelfLinks(posts.find('a'));
utils.addCommasToNumbers(posts.find('.formatted-number'));
utils.makeNumbersHumanReadable(posts.find('.human-readable-number'));
posts.find('.timeago').timeago();
posts.find('.timeago').timeago().each(function() {
$(this).attr('title', (new Date($(this).attr('title'))).toString());
});
posts.find('[component="post/content"] img:not(.emoji)').each(function() {
var $this = $(this);
if (!$this.parent().is('a')) {