From e0db904b0e3651af6aced60d798986dbf7e2aada Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 12 Jul 2021 13:10:57 -0400 Subject: [PATCH] feat: new hook `action:topics.loading` (in the same format as `action:posts.loading`) --- public/src/modules/topicList.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/src/modules/topicList.js b/public/src/modules/topicList.js index 4936cfbfba..22a0db5919 100644 --- a/public/src/modules/topicList.js +++ b/public/src/modules/topicList.js @@ -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();