mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
fix: convert some hooks to use hooks module
re: julianlam/nodebb-plugin-markdown#130
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user