added client side hooks: "action:topic.loading" and "action:topic.loaded"

This commit is contained in:
Julian Lam
2014-02-08 00:53:35 -05:00
parent 27381bfc35
commit 7ea379d4f1

View File

@@ -42,6 +42,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
Topic.postCount = templates.get('postcount');
$(window).trigger('action:topic.loading');
function fixDeleteStateForPosts() {
var postEls = document.querySelectorAll('#post-container li[data-deleted]');
@@ -1050,6 +1051,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
}
$(window).on('scroll', updateHeader);
$(window).trigger('action:topic.loaded');
};
function updateHeader() {