Making sure that the data is downloaded before starting rendering the client

This commit is contained in:
Oleksandr Zhurbenko 2015-11-03 12:03:05 -08:00
parent 2f9a990663
commit a97eba6d8b

View File

@ -57,7 +57,8 @@
Meteor.subscribe 'users', meetingId, userId, authToken, onError: onErrorFunction, onReady: =>
Meteor.subscribe 'whiteboard-clean-status', meetingId, onReady: =>
Meteor.subscribe 'bbb_poll', meetingId, userId, authToken, onReady: =>
# done subscribing
# done subscribing, start rendering the client and set default settings
@render('main')
onLoadComplete()
handleLogourUrlError = () ->
@ -81,7 +82,7 @@
a.fail (data, textStatus, errorThrown) ->
handleLogourUrlError()
@render('main')
@render('loading')
# endpoint - is the html5client running (ready to handle a user)