feat: new hook action:topics.loading (in the same format as action:posts.loading)

This commit is contained in:
psychobunny
2021-07-12 13:10:57 -04:00
parent 8ae4c30029
commit e0db904b0e

View File

@@ -250,6 +250,8 @@ define('topicList', [
};
tplData.template[templateName] = true;
$(window).trigger('action:topics.loading', { topics: topics, after: after, before: before });
app.parseAndTranslate(templateName, 'topics', tplData, function (html) {
topicListEl.removeClass('hidden');
$('#category-no-topics').remove();