fix for "invalid date" re:threading when replying to yourself

v1.18.x
psychobunny 8 years ago
parent 6a822f729d
commit 6f8e7343e6

@ -86,10 +86,14 @@ define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'],
var countEl = replyCount.find('[component="post/reply-count/text"]');
var avatars = replyCount.find('[component="post/reply-count/avatars"]');
var count = Math.max(0, parseInt(countEl.attr('data-replies'), 10) + inc);
var timestamp = replyCount.find('.timeago').attr('title', post.timestampISO);
countEl.attr('data-replies', count);
replyCount.toggleClass('hidden', !count);
countEl.translateText('[[topic:replies_to_this_post, ' + count + ']]');
avatars.addClass('hasMore');
timestamp.timeago();
}
return Replies;

Loading…
Cancel
Save