mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
added client side hooks: "action:topic.loading" and "action:topic.loaded"
This commit is contained in:
@@ -42,6 +42,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
|
|
||||||
Topic.postCount = templates.get('postcount');
|
Topic.postCount = templates.get('postcount');
|
||||||
|
|
||||||
|
$(window).trigger('action:topic.loading');
|
||||||
|
|
||||||
function fixDeleteStateForPosts() {
|
function fixDeleteStateForPosts() {
|
||||||
var postEls = document.querySelectorAll('#post-container li[data-deleted]');
|
var postEls = document.querySelectorAll('#post-container li[data-deleted]');
|
||||||
@@ -1050,6 +1051,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(window).on('scroll', updateHeader);
|
$(window).on('scroll', updateHeader);
|
||||||
|
$(window).trigger('action:topic.loaded');
|
||||||
};
|
};
|
||||||
|
|
||||||
function updateHeader() {
|
function updateHeader() {
|
||||||
|
|||||||
Reference in New Issue
Block a user