mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
migrating infinitescroll #2230
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user