calling translator in parseMessage

This commit is contained in:
Julian Lam
2015-12-14 16:20:08 -05:00
parent 530b0dc19e
commit ea1b640435

View File

@@ -423,7 +423,9 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
Chats.parseMessage = function(data, callback) {
templates.parse('partials/chat_message' + (Array.isArray(data) ? 's' : ''), {
messages: data
}, callback);
}, function(html) {
translator.translate(html, callback);
});
};
function loadMoreRecentChats() {