bigbluebutton-Github/bigbluebutton-html5/app/client/views/users/user_list.coffee

19 lines
570 B
CoffeeScript
Raw Normal View History

2014-06-12 22:08:55 +08:00
Template.usersList.helpers
getInfoNumberOfUsers: ->
2015-05-06 04:15:33 +08:00
numberUsers = BBB.getNumberOfUsers()
if numberUsers > 8
return "Users: #{numberUsers}"
# do not display the label if there are just a few users
Template.usersList.rendered = ->
$('.sl-left-drawer').resizable
handles: 'e'
maxWidth: 600
minWidth: 200
resize: () ->
adjustChatInputHeight()
Tracker.autorun (comp) ->
setInSession 'userListRenderedTime', TimeSync.serverTime()
if getInSession('userListRenderedTime') isnt undefined
comp.stop()