This commit is contained in:
Julian Lam
2014-01-17 15:36:10 -05:00
parent 917dfe74e6
commit 123f92ca1e

View File

@@ -321,6 +321,17 @@ define(['composer'], function(composer) {
$('#post-container').on('click', '.deleted', function(ev) { $('#post-container').on('click', '.deleted', function(ev) {
$(this).toggleClass('deleted-expanded'); $(this).toggleClass('deleted-expanded');
}); });
// Show the paginator block, now that the DOM has finished loading
(function delayedHeaderUpdate() {
if (!Topic.postCount) {
setTimeout(function() {
delayedHeaderUpdate();
}, 25);
} else {
updateHeader();
}
})();
}); });
function enableInfiniteLoading() { function enableInfiniteLoading() {
@@ -893,7 +904,6 @@ define(['composer'], function(composer) {
Topic.postCount = templates.get('postcount'); Topic.postCount = templates.get('postcount');
window.onscroll = updateHeader; window.onscroll = updateHeader;
window.onload = updateHeader;
}; };
function updateHeader() { function updateHeader() {