Node.js based forum software built for the modern web
Add topics.loaded event to be triggered when new topics are loaded by infinite scroll.
Joseph Chen4f03e74b99a4
diff --git a/public/src/client/account/topics.js b/public/src/client/account/topics.jsindex 231ddfd5ec..c556ef2891 100644--- a/public/src/client/account/topics.js+++ b/public/src/client/account/topics.js@@ -36,6 +36,7 @@ define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'],html.find('span.timeago').timeago();app.createUserTooltips();utils.makeNumbersHumanReadable(html.find('.human-readable-number'));+ $(window).trigger('action:topics.loaded');callback();});}diff --git a/public/src/client/recent.js b/public/src/client/recent.jsindex 054a087363..a2db035f77 100644--- a/public/src/client/recent.js+++ b/public/src/client/recent.js@@ -104,6 +104,7 @@ define('forum/recent', ['forum/infinitescroll'], function(infinitescroll) {html.find('span.timeago').timeago();app.createUserTooltips();utils.makeNumbersHumanReadable(html.find('.human-readable-number'));+ $(window).trigger('action:topics.loaded');callback();});};