mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 23:00:31 +01:00
Merge pull request #2682 from MegaGM/action.posts.loaded
Change argument in action:posts.loaded
This commit is contained in:
@@ -59,7 +59,7 @@ define('forum/home', function() {
|
||||
recentPosts.last().remove();
|
||||
}
|
||||
|
||||
$(window).trigger('action:posts.loaded');
|
||||
$(window).trigger('action:posts.loaded', {posts: [post]});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ define('forum/topic/posts', [
|
||||
pids.push(data.posts[i].pid);
|
||||
}
|
||||
|
||||
$(window).trigger('action:posts.loaded', pids);
|
||||
$(window).trigger('action:posts.loaded', {posts: data.posts});
|
||||
onNewPostsLoaded(html, pids);
|
||||
callback(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user