dont infinite load if there are no topics loaded

This commit is contained in:
Baris Usakli
2013-08-08 14:00:40 -04:00
parent 99ac782875
commit 8bc60be7c3

View File

@@ -205,7 +205,7 @@
var windowHeight = document.body.offsetHeight - $(window).height(),
half = windowHeight / 2;
if (document.body.scrollTop > half && !app.infiniteLoaderActive) {
if (document.body.scrollTop > half && !app.infiniteLoaderActive && $('#post-container').children().length) {
app.loadMorePosts(tid);
}
});