|
|
@ -214,7 +214,7 @@
|
|
|
|
$('#load-more-users-btn').on('click', loadMoreUsers);
|
|
|
|
$('#load-more-users-btn').on('click', loadMoreUsers);
|
|
|
|
|
|
|
|
|
|
|
|
$(window).off('scroll').on('scroll', function() {
|
|
|
|
$(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) {
|
|
|
|
if ($(window).scrollTop() > bottom && !loadingMoreUsers) {
|
|
|
|
loadMoreUsers();
|
|
|
|
loadMoreUsers();
|
|
|
|