This commit is contained in:
Baris Soner Usakli
2014-01-27 14:57:25 -05:00
parent 4e659cfeee
commit c0184ba350
2 changed files with 33 additions and 0 deletions

View File

@@ -165,6 +165,25 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
}
var recentReplies = $('#category_recent_replies');
// doesnt work see https://github.com/designcreateplay/NodeBB/issues/893
/*
templates.preload_template('recentreplies', function() {
var html = templates.prepare(templates['recentreplies'].blocks['posts']).parse({
posts: posts
});
translator.translate(html, function(translatedHTML) {
recentReplies.html(translatedHTML);
$('#category_recent_replies span.timeago').timeago();
app.createUserTooltips();
});
});
*/
var replies = '';
for (var i = 0, numPosts = posts.length; i < numPosts; ++i) {