Skip to content

Node.js based forum software built for the modern web

migrating infinitescroll #2230

psychobunny2f150649ae50
diff --git a/public/src/client/infinitescroll.js b/public/src/client/infinitescroll.js
index 6f527f1fa3..e600d16fbe 100644
--- a/public/src/client/infinitescroll.js
+++ b/public/src/client/infinitescroll.js
@@ -51,9 +51,7 @@ define('forum/infinitescroll', function() {
};
scroll.parseAndTranslate = function(template, blockName, data, callback) {
- ajaxify.loadTemplate(template, function(templateHtml) {
- var html = templates.parse(templates.getBlock(templateHtml, blockName), data);
-
+ templates.parse(template, blockName, data, function(html) {
translator.translate(html, function(translatedHTML) {
callback($(translatedHTML));
});