fix: convert some hooks to use hooks module

re: julianlam/nodebb-plugin-markdown#130
This commit is contained in:
Julian Lam
2021-06-25 16:52:46 -04:00
parent a76eab1ca2
commit 09bac6bd7e
5 changed files with 16 additions and 10 deletions

View File

@@ -12,7 +12,12 @@ define('forum/topic', [
'sort',
'components',
'storage',
], function (infinitescroll, threadTools, postTools, events, posts, images, navigator, sort, components, storage) {
'hooks',
], function (
infinitescroll, threadTools, postTools,
events, posts, images, navigator, sort,
components, storage, hooks
) {
var Topic = {};
var currentUrl = '';
@@ -70,7 +75,7 @@ define('forum/topic', [
handleTopicSearch();
$(window).trigger('action:topic.loaded', ajaxify.data);
hooks.fire('action:topic.loaded', ajaxify.data);
};
function handleTopicSearch() {