forked from External/greenlight
fix actioncable issue
This commit is contained in:
parent
b1e65e4ca7
commit
206f293194
|
@ -119,7 +119,13 @@ joinMeeting = function(meeting_name){
|
|||
}
|
||||
|
||||
// Only need to register for logged in users.
|
||||
$(document).on('turbolinks:load', function(){
|
||||
if($('body').data('current-user')){
|
||||
|
||||
MEETINGS = {}
|
||||
$('.actives').empty();
|
||||
|
||||
if(!App.messages){
|
||||
App.messages = App.cable.subscriptions.create('RefreshMeetingsChannel', {
|
||||
received: function(data) {
|
||||
console.log('Recieved ' + data['method'] + ' action for ' + data['meeting'] + '.')
|
||||
|
@ -145,7 +151,9 @@ if($('body').data('current-user')){
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
console.log('Populating active meetings.');
|
||||
setTimeout(initialPopulate, LOADING_DELAY);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -46,5 +46,3 @@
|
|||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= javascript_include_tag "active_meetings.js" %>
|
||||
|
|
Loading…
Reference in New Issue