Node.js based forum software built for the modern web
Update events.js
Manuel Valledbcb6f979645
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.jsindex ba6313c4b4..c7c2c6e270 100644--- a/public/src/client/topic/events.js+++ b/public/src/client/topic/events.js@@ -130,10 +130,12 @@ define('forum/topic/events', [};templates.parse('partials/topic/post-editor', editData, function(html) {- translator.translate(html, function(translated) {- html = $(translated);- editorEl.replaceWith(html);- html.find('.timeago').timeago();+ require(['translator'], function(translator) {+ translator.translate(html, function(translated) {+ html = $(translated);+ editorEl.replaceWith(html);+ html.find('.timeago').timeago();+ });});});