This commit is contained in:
Baris Usakli
2013-08-19 10:58:02 -04:00
parent 3747427538
commit 41263f0332

View File

@@ -78,7 +78,10 @@
if(data.topics && data.topics.length) {
onTopicsLoaded(data.topics);
$('#topics-container').attr('data-next-start', data.nextStart);
} else {
}
loadingMoreTopics = false;
});
}
@@ -92,7 +95,7 @@
});
if($("body").height() <= $(window).height() && $('#topics-container').children().length)
if($("body").height() <= $(window).height() && $('#topics-container').children().length >= 20)
$('#load-more-btn').show();
$('#load-more-btn').on('click', function() {