mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
fixes timeago
This commit is contained in:
@@ -49,6 +49,7 @@ define('forum/categories', ['components', 'translator'], function(components, tr
|
|||||||
html.fadeIn();
|
html.fadeIn();
|
||||||
|
|
||||||
app.createUserTooltips();
|
app.createUserTooltips();
|
||||||
|
html.find('.timeago').timeago();
|
||||||
|
|
||||||
if (category.find('[component="category/posts"]').length > parseInt(numRecentReplies, 10)) {
|
if (category.find('[component="category/posts"]').length > parseInt(numRecentReplies, 10)) {
|
||||||
recentPosts.last().remove();
|
recentPosts.last().remove();
|
||||||
@@ -63,7 +64,7 @@ define('forum/categories', ['components', 'translator'], function(components, tr
|
|||||||
translator.translate(html, function(translatedHTML) {
|
translator.translate(html, function(translatedHTML) {
|
||||||
translatedHTML = $(translatedHTML);
|
translatedHTML = $(translatedHTML);
|
||||||
translatedHTML.find('img:not(.not-responsive)').addClass('img-responsive');
|
translatedHTML.find('img:not(.not-responsive)').addClass('img-responsive');
|
||||||
translatedHTML.find('.timeago').timeago();
|
|
||||||
callback(translatedHTML);
|
callback(translatedHTML);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user