changed document.body.offsetHeight to .height()

This commit is contained in:
Baris Soner Usakli
2013-08-21 14:33:05 -04:00
parent ac56f3a30a
commit 3f793ae902
6 changed files with 6 additions and 6 deletions

View File

@@ -105,7 +105,7 @@
$('#load-more-users-btn').on('click', loadMoreUsers);
$(window).off('scroll').on('scroll', function() {
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
var bottom = ($(document).height() - $(window).height()) * 0.9;
if ($(window).scrollTop() > bottom && !loadingMoreUsers) {
loadMoreUsers();