Node.js based forum software built for the modern web
fix: use hooks module instead of window trigger
psychobunnyacb11cc76465
diff --git a/public/src/modules/topicList.js b/public/src/modules/topicList.jsindex 3a636f773a..c4ee45e66a 100644--- a/public/src/modules/topicList.js+++ b/public/src/modules/topicList.js@@ -6,7 +6,8 @@ define('topicList', ['topicSelect','categoryFilter','forum/category/tools',-], function (infinitescroll, handleBack, topicSelect, categoryFilter, categoryTools) {+ 'hooks',+], function (infinitescroll, handleBack, topicSelect, categoryFilter, categoryTools, hooks) {var TopicList = {};var templateName = '';@@ -250,7 +251,7 @@ define('topicList', [};tplData.template[templateName] = true;- $(window).trigger('action:topics.loading', { topics: topics, after: after, before: before });+ hooks.fire('action:topics.loading', { topics: topics, after: after, before: before });app.parseAndTranslate(templateName, 'topics', tplData, function (html) {topicListEl.removeClass('hidden');