fixed user load more

v1.18.x
Baris Soner Usakli 11 years ago
parent 4366c11ec0
commit ddb9a4a60e

@ -245,8 +245,8 @@ define(function() {
socket.emit('user.loadMore', {
set: set,
after: $('#users-container').children().length
}, function(data) {
if (data.users.length) {
}, function(err, data) {
if (data && data.users.length) {
onUsersLoaded(data.users);
}
loadingMoreUsers = false;

@ -126,8 +126,8 @@ define(function() {
socket.emit('user.loadMore', {
set: set,
after: after
}, function(data) {
if (data.users.length) {
}, function(err, data) {
if (data && data.users.length) {
onUsersLoaded(data.users, emptyContainer);
$('#load-more-users-btn').removeClass('disabled');
} else {

Loading…
Cancel
Save