Update events.js

This commit is contained in:
Manuel Valle
2016-01-20 11:34:33 -06:00
parent c9c761d70b
commit 67d9323b9e

View File

@@ -131,12 +131,10 @@ define('forum/topic/events', [
};
templates.parse('partials/topic/post-editor', editData, function(html) {
require(['translator'], function(translator) {
translator.translate(html, function(translated) {
html = $(translated);
editorEl.replaceWith(html);
html.find('.timeago').timeago();
});
translator.translate(html, function(translated) {
html = $(translated);
editorEl.replaceWith(html);
html.find('.timeago').timeago();
});
});