mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
feat: new hook action:topics.loading (in the same format as action:posts.loading)
This commit is contained in:
@@ -250,6 +250,8 @@ define('topicList', [
|
|||||||
};
|
};
|
||||||
tplData.template[templateName] = true;
|
tplData.template[templateName] = true;
|
||||||
|
|
||||||
|
$(window).trigger('action:topics.loading', { topics: topics, after: after, before: before });
|
||||||
|
|
||||||
app.parseAndTranslate(templateName, 'topics', tplData, function (html) {
|
app.parseAndTranslate(templateName, 'topics', tplData, function (html) {
|
||||||
topicListEl.removeClass('hidden');
|
topicListEl.removeClass('hidden');
|
||||||
$('#category-no-topics').remove();
|
$('#category-no-topics').remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user