limit previous meetings container to 5

This commit is contained in:
Zachary Chai
2017-02-14 15:00:23 -05:00
parent 2cc5c9e949
commit 349f4c51c6
2 changed files with 15 additions and 9 deletions

View File

@ -202,12 +202,14 @@ class @Recordings
table_api.rows.add(data.recordings)
@draw()
recording_names = data.recordings.map (r) ->
return r.name
output = {}
for key in [0...recording_names.length]
output[recording_names[key]] = recording_names[key]
PreviousMeetings.add(value for key, value of output)
if $(".page-wrapper.rooms").data('main-room')
recording_names = data.recordings.map (r) ->
return r.name
output = {}
for key in [0...recording_names.length]
output[recording_names[key]] = recording_names[key]
PreviousMeetings.add(value for key, value of output)
# setup click handlers for the action buttons
setupActionHandlers: ->