Node.js based forum software built for the modern web
added topics to `action:topics.loaded` also fire it on category view
barisusakli8220567b5bdf
diff --git a/public/src/client/account/topics.js b/public/src/client/account/topics.jsindex d917be4ac4..1fefc727d1 100644--- a/public/src/client/account/topics.js+++ b/public/src/client/account/topics.js@@ -46,7 +46,7 @@ define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'],html.find('.timeago').timeago();app.createUserTooltips();utils.makeNumbersHumanReadable(html.find('.human-readable-number'));- $(window).trigger('action:topics.loaded');+ $(window).trigger('action:topics.loaded', {topics: topics});callback();});}diff --git a/public/src/client/category.js b/public/src/client/category.jsindex dd13089a8b..a441ff5d08 100644--- a/public/src/client/category.js+++ b/public/src/client/category.js@@ -334,6 +334,8 @@ define('forum/category', [app.createUserTooltips();utils.makeNumbersHumanReadable(html.find('.human-readable-number'));+ $(window).trigger('action:topics.loaded', {topics: data.topics});+callback();});};diff --git a/public/src/client/recent.js b/public/src/client/recent.jsindex 6d64034c04..e4223d519a 100644--- a/public/src/client/recent.js+++ b/public/src/client/recent.js@@ -117,7 +117,7 @@ define('forum/recent', ['forum/infinitescroll', 'components'], function(infinitehtml.find('.timeago').timeago();app.createUserTooltips();utils.makeNumbersHumanReadable(html.find('.human-readable-number'));- $(window).trigger('action:topics.loaded');+ $(window).trigger('action:topics.loaded', {topics: topics});callback();});};