Merge pull request #2410 from joe1chen/add-topics-loaded-event

Add topics.loaded event to be triggered when new topics are loaded by infinite scroll.
This commit is contained in:
Julian Lam
2014-11-14 12:13:59 -05:00
2 changed files with 2 additions and 0 deletions

View File

@@ -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();
});
}

View File

@@ -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();
});
};