fix recording update channel and routes

This commit is contained in:
Zachary Chai
2017-01-31 11:42:47 -05:00
parent c70ad42d8b
commit 9667e3757b
4 changed files with 33 additions and 15 deletions

View File

@ -62,13 +62,13 @@
};
$(document).on("turbolinks:load", function() {
// disable meeting updates if enabled from a previous page
if (App.meeting_update) {
disableMeetingUpdates();
}
if ($("body[data-controller=landing]").get(0)) {
if ($("body[data-action=rooms]").get(0)) {
// disable meeting updates if enabled from a previous page
if (App.meeting_update) {
disableMeetingUpdates();
}
if ($(".page-wrapper.rooms").data('main-room') === false) {
if (!$(".page-wrapper.rooms").data('main-room')) {
enableMeetingUpdates();
}
}