mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixed #711
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user