Skip to content

Node.js based forum software built for the modern web

Update events.js

Manuel Valle67d9323b9e72
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js
index f5a9bbd0dc..99d2c85aa5 100644
--- a/public/src/client/topic/events.js
+++ b/public/src/client/topic/events.js
@@ -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();
});
});