Node.js based forum software built for the modern web
added translation method to recent's infinite loader
psychobunny6c9e28232fbe
diff --git a/public/src/forum/recent.js b/public/src/forum/recent.jsindex 6b162db34f..c883c9c54b 100644--- a/public/src/forum/recent.js+++ b/public/src/forum/recent.js@@ -81,18 +81,20 @@ define(function() {}Recent.onTopicsLoaded = function(topics) {-var html = templates.prepare(templates['recent'].blocks['topics']).parse({topics: topics- }),- container = $('#topics-container');+ });++ translator.translate(html, function(translatedHTML) {+ var container = $('#topics-container');- $('#category-no-topics').remove();+ $('#category-no-topics').remove();- html = $(html);- container.append(html);- $('span.timeago').timeago();- app.makeNumbersHumanReadable(html.find('.human-readable-number'));+ html = $(html);+ container.append(html);+ $('span.timeago').timeago();+ app.makeNumbersHumanReadable(html.find('.human-readable-number'));+ });}Recent.loadMoreTopics = function() {diff --git a/public/src/forum/unread.js b/public/src/forum/unread.jsindex 5151eb37cb..e0dd1dd7d7 100644--- a/public/src/forum/unread.js+++ b/public/src/forum/unread.js@@ -71,7 +71,6 @@ define(function() {});function onTopicsLoaded(topics) {-var html = templates.prepare(templates['unread'].blocks['topics']).parse({topics: topics});