Drop the hide and show of new users in user list
* causes the first load after the initial load to hide some users in the viewport and showing them again, but with a scrolled up viewport * causes higher load for nearly never visible effects * fixes #12962
This commit is contained in:
parent
3465604cf9
commit
1b81339dfd
|
@ -404,7 +404,6 @@ var UserList = {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
var $tr = UserList.add(user, user.lastLogin, false, user.backend);
|
var $tr = UserList.add(user, user.lastLogin, false, user.backend);
|
||||||
$tr.addClass('appear transparent');
|
|
||||||
trs.push($tr);
|
trs.push($tr);
|
||||||
loadedUsers++;
|
loadedUsers++;
|
||||||
});
|
});
|
||||||
|
@ -419,12 +418,6 @@ var UserList = {
|
||||||
$userList.siblings('.loading').remove();
|
$userList.siblings('.loading').remove();
|
||||||
}
|
}
|
||||||
UserList.offset += loadedUsers;
|
UserList.offset += loadedUsers;
|
||||||
// animate
|
|
||||||
setTimeout(function() {
|
|
||||||
for (var i = 0; i < trs.length; i++) {
|
|
||||||
trs[i].removeClass('transparent');
|
|
||||||
}
|
|
||||||
}, 0);
|
|
||||||
}).always(function() {
|
}).always(function() {
|
||||||
UserList.updating = false;
|
UserList.updating = false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue