Baris Usakli 12 years ago
commit fe6595cd2a

@ -344,12 +344,13 @@ var socket,
app.createNewPosts = function (data) {
data.posts[0].display_moderator_tools = 'none';
var html = templates.prepare(templates['topic'].blocks['posts']).parse(data),
uniqueid = new Date().getTime(),
var html = templates.prepare(templates['topic'].blocks['posts']).parse(data);
translator.translate(html, function(translatedHTML) {
var uniqueid = new Date().getTime(),
tempContainer = jQuery('<div id="' + uniqueid + '"></div>')
.appendTo("#post-container")
.hide()
.append(html)
.append(translatedHTML)
.fadeIn('slow');
for (var x = 0, numPosts = data.posts.length; x < numPosts; x++) {
@ -362,6 +363,7 @@ var socket,
app.populate_online_users();
app.addCommasToNumbers();
$('span.timeago').timeago();
});
}
app.infiniteLoaderActive = false;

Loading…
Cancel
Save