added translation to new post creation, closes #627

v1.18.x
psychobunny 12 years ago
parent 34fc326a37
commit 5c3c2623f2

@ -83,8 +83,10 @@ define(function () {
Category.onNewTopic = function(data) {
var html = templates.prepare(templates['category'].blocks['topics']).parse({
topics: [data]
}),
topic = $(html),
});
translator.translate(html, function(translatedHTML) {
var topic = $(translatedHTML),
container = $('#topics-container'),
topics = $('#topics-container').children('.category-item'),
numTopics = topics.length;
@ -113,6 +115,7 @@ define(function () {
addActiveUser(data);
$('#topics-container span.timeago').timeago();
});
}
function addActiveUser(data) {

Loading…
Cancel
Save