diff --git a/public/src/forum/users.js b/public/src/forum/users.js index 5d7994cf97..9135416c92 100644 --- a/public/src/forum/users.js +++ b/public/src/forum/users.js @@ -60,7 +60,7 @@ define(function() { var html = templates.prepare(templates['users'].blocks['users']).parse({ users: data }), - userListEl = document.querySelector('#users-container'); + userListEl = document.querySelector('#users-inner-container'); userListEl.innerHTML = html; @@ -77,7 +77,7 @@ define(function() { socket.on('api:user.isOnline', function(data) { if(active == 'online' && !loadingMoreUsers) { - $('#users-container .registered-user').remove(); + $('#users-inner-container').empty(); startLoading('users:online', 0); socket.emit('api:user.getOnlineAnonCount', {} , function(anonCount) { $('#online_anon_count').html(anonCount); @@ -89,7 +89,7 @@ define(function() { var html = templates.prepare(templates['users'].blocks['users']).parse({ users: users }); - $('#users-container').prepend(html); + $('#users-inner-container').append(html); } function loadMoreUsers() { @@ -105,7 +105,7 @@ define(function() { } if (set) { - startLoading(set, $('#users-container').children().length); + startLoading(set, $('#users-inner-container').children().length); } } diff --git a/public/templates/users.tpl b/public/templates/users.tpl index ce43feb591..a223ad2b82 100644 --- a/public/templates/users.tpl +++ b/public/templates/users.tpl @@ -19,26 +19,28 @@