From 24592cc69620475a5d60fc02c8a00d58f231863c Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Wed, 23 Oct 2013 15:24:43 -0400 Subject: [PATCH] fixed the anon-box in users/online to show inline --- public/src/forum/users.js | 9 +++++---- public/templates/users.tpl | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/public/src/forum/users.js b/public/src/forum/users.js index d16aac8497..8d57e1e5fc 100644 --- a/public/src/forum/users.js +++ b/public/src/forum/users.js @@ -65,9 +65,9 @@ define(function() { var html = templates.prepare(templates['users'].blocks['users']).parse({ users: data }), - userListEl = document.querySelector('#users-inner-container'); + userListEl = $('#users-inner-container'); - userListEl.innerHTML = html; + userListEl.html(html); if (data && data.length === 0) { @@ -94,8 +94,9 @@ define(function() { users: users }); if(emptyContainer) - $('#users-inner-container').empty(); + $('#users-inner-container .registered-user').remove(); $('#users-inner-container').append(html); + $('#users-inner-container .anon-user').appendTo($('#users-inner-container')); } function loadMoreUsers() { @@ -111,7 +112,7 @@ define(function() { } if (set) { - startLoading(set, $('#users-inner-container').children().length); + startLoading(set, $('#users-inner-container .registered-user').children().length); } } diff --git a/public/templates/users.tpl b/public/templates/users.tpl index a223ad2b82..6cddd91e47 100644 --- a/public/templates/users.tpl +++ b/public/templates/users.tpl @@ -40,18 +40,19 @@ - -
- - - -
- +