Skip to content

Commit

Permalink
feat: new hook action:topics.loading (in the same format as `action…
Browse files Browse the repository at this point in the history
…:posts.loading`)
  • Loading branch information
psychobunny committed Jul 12, 2021
1 parent 8ae4c30 commit e0db904
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/src/modules/topicList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e0db904

Please sign in to comment.