on logout the entire user row in the user list is removed

This commit is contained in:
Anton Georgiev 2014-06-03 14:40:35 +00:00
parent daea03df05
commit 25275821af
2 changed files with 10 additions and 12 deletions

View File

@ -64,8 +64,6 @@ define [
# Removes all a user from the list #TODO - for now it does not remove but moves to the left hand side
_removeUserByID: (userID)->
@$("#user-"+userID).remove()
#@$("#user-"+userID).parent().context.hidden = "true"
#console.log @$el.children("ul")
# Add a user to the screen.
_addUser: (userID, username) ->

View File

@ -1,10 +1,10 @@
<li class="user-wrapper">
<div class="row">
<div class="user-role col-md-1" id="user-<%= userID %>"><i class="icon fa fa-user"></i></div>
<div class="user-name col-md-5"><%= username %></div>
<div class="user-video col-md-1"><i class="icon fa fa-video-camera"></i></div>
<div class="user-audio col-md-1"><i class="icon fa fa-microphone"></i></div>
<div class="user-kick col-md-1"><i class="icon fa fa-sign-out"></i></div>
<div class="clearfix"></div>
</div>
</li>
<li class="user-wrapper" id="user-<%= userID %>">
<div class="row">
<div class="user-role col-md-1"><i class="icon fa fa-user"></i></div>
<div class="user-name col-md-5"><%= username %></div>
<div class="user-video col-md-1"><i class="icon fa fa-video-camera"></i></div>
<div class="user-audio col-md-1"><i class="icon fa fa-microphone"></i></div>
<div class="user-kick col-md-1"><i class="icon fa fa-sign-out"></i></div>
<div class="clearfix"></div>
</div>
</li>