mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
fixes infinite scroll on account pages
This commit is contained in:
@@ -33,7 +33,7 @@ define(['forum/account/header'], function(header) {
|
||||
}
|
||||
|
||||
function onTopicsLoaded(posts) {
|
||||
ajaxify.loadTemplate('favourites', function(favouritesTemplate) {
|
||||
ajaxify.loadTemplate('account/favourites', function(favouritesTemplate) {
|
||||
var html = templates.parse(templates.getBlock(favouritesTemplate, 'posts'), {posts: posts});
|
||||
|
||||
translator.translate(html, function(translatedHTML) {
|
||||
|
||||
@@ -38,7 +38,7 @@ define(['forum/account/header'], function(header) {
|
||||
}
|
||||
|
||||
function onPostsLoaded(posts) {
|
||||
ajaxify.loadTemplate('accountposts', function(accountposts) {
|
||||
ajaxify.loadTemplate('account/posts', function(accountposts) {
|
||||
var html = templates.parse(templates.getBlock(accountposts, 'posts'), {posts: posts});
|
||||
|
||||
translator.translate(html, function(translatedHTML) {
|
||||
|
||||
@@ -36,7 +36,7 @@ define(['forum/account/header'], function(header) {
|
||||
}
|
||||
|
||||
function onTopicsLoaded(topics) {
|
||||
ajaxify.loadTemplate('accounttopics', function(accounttopics) {
|
||||
ajaxify.loadTemplate('account/topics', function(accounttopics) {
|
||||
var html = templates.parse(templates.getBlock(accounttopics, 'topics'), {topics: topics});
|
||||
|
||||
translator.translate(html, function(translatedHTML) {
|
||||
|
||||
Reference in New Issue
Block a user