From e03bacf032ae46e268c7c2633ee0796587e04327 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 3 Mar 2016 20:35:54 +0200 Subject: [PATCH] fixes timeago --- public/src/client/categories.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/client/categories.js b/public/src/client/categories.js index 9187a8cfe8..a73ed617bb 100644 --- a/public/src/client/categories.js +++ b/public/src/client/categories.js @@ -49,6 +49,7 @@ define('forum/categories', ['components', 'translator'], function(components, tr html.fadeIn(); app.createUserTooltips(); + html.find('.timeago').timeago(); if (category.find('[component="category/posts"]').length > parseInt(numRecentReplies, 10)) { recentPosts.last().remove(); @@ -63,7 +64,7 @@ define('forum/categories', ['components', 'translator'], function(components, tr translator.translate(html, function(translatedHTML) { translatedHTML = $(translatedHTML); translatedHTML.find('img:not(.not-responsive)').addClass('img-responsive'); - translatedHTML.find('.timeago').timeago(); + callback(translatedHTML); }); });