2014-06-12 22:08:55 +08:00
|
|
|
Template.usersList.helpers
|
2015-04-17 02:19:40 +08:00
|
|
|
getInfoNumberOfUsers: ->
|
2015-05-06 04:15:33 +08:00
|
|
|
numberUsers = BBB.getNumberOfUsers()
|
2015-04-21 23:14:49 +08:00
|
|
|
if numberUsers > 8
|
|
|
|
return "Users: #{numberUsers}"
|
2015-04-17 02:19:40 +08:00
|
|
|
# do not display the label if there are just a few users
|
2015-05-06 22:52:43 +08:00
|
|
|
|
2015-06-25 08:21:50 +08:00
|
|
|
Template.usersList.rendered = ->
|
2015-07-23 04:34:15 +08:00
|
|
|
$('.sl-left-drawer').resizable
|
|
|
|
handles: 'e'
|
|
|
|
maxWidth: 600
|
|
|
|
minWidth: 200
|
2015-07-23 05:25:46 +08:00
|
|
|
resize: () ->
|
|
|
|
adjustChatInputHeight()
|
2015-08-28 05:47:40 +08:00
|
|
|
|
2015-06-25 08:21:50 +08:00
|
|
|
Tracker.autorun (comp) ->
|
|
|
|
setInSession 'userListRenderedTime', TimeSync.serverTime()
|
|
|
|
if getInSession('userListRenderedTime') isnt undefined
|
2015-07-23 04:34:15 +08:00
|
|
|
comp.stop()
|
2015-08-28 05:47:40 +08:00
|
|
|
|
|
|
|
if isPhone()
|
|
|
|
$('.sl-left-drawer').addClass('hiddenInLandscape')
|