filter users who are already on dom

v1.18.x
barisusakli 11 years ago
parent fd0622a1a3
commit 9a908c1651

@ -74,6 +74,10 @@ define('forum/users', function() {
}
function onUsersLoaded(users) {
users = users.filter(function(user) {
return !$('.users-box[data-uid="' + user.uid + '"]').length;
});
ajaxify.loadTemplate('users', function(usersTemplate) {
var html = templates.parse(templates.getBlock(usersTemplate, 'users'), {users: users});

Loading…
Cancel
Save