23 lines
646 B
CoffeeScript
Executable File
23 lines
646 B
CoffeeScript
Executable File
Template.usersList.helpers
|
|
getInfoNumberOfUsers: ->
|
|
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()
|
|
|
|
if isPhone()
|
|
$('.sl-left-drawer').addClass('hiddenInLandscape')
|