#3322 properly, @barisusakli so no need to copy pasta everywhere timeago is used

This commit is contained in:
psychobunny
2015-08-17 16:26:35 -04:00
parent 370a7ae2fb
commit 3d962822c6
3 changed files with 13 additions and 6 deletions

View File

@@ -255,9 +255,7 @@ 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().each(function() {
$(this).attr('title', (new Date($(this).attr('title'))).toString());
});
posts.find('.timeago').timeago();
posts.find('[component="post/content"] img:not(.emoji)').each(function() {
var $this = $(this);
if (!$this.parent().is('a')) {