oauth update

This commit is contained in:
Zachary Chai
2016-11-04 14:28:40 -04:00
parent e093ead683
commit b4e0e73692
21 changed files with 79 additions and 144 deletions

View File

@ -9,7 +9,7 @@
var initRooms = function() {
App.messages = App.cable.subscriptions.create({
channel: 'MeetingUpdatesChannel',
username: getRoomName()
encrypted_id: getEncryptedId()
},
{
received: function(data) {

View File

@ -3,7 +3,7 @@
var initRooms = function() {
App.messages = App.cable.subscriptions.create({
channel: 'RecordingUpdatesChannel',
username: getRoomName()
encrypted_id: getEncryptedId()
},
{
received: function(data) {

View File

@ -152,7 +152,7 @@
targets: -1,
render: function(data, type, row) {
if (type === 'display') {
var roomName = getRoomName();
var roomName = getEncryptedId();
var published = row.published;
var eye = getPublishClass(published);
return '<button type="button" class="btn btn-default recording-update" data-published="'+published+'">' +
@ -210,7 +210,7 @@
return;
}
table = recordingsTable.api();
$.get("/rooms/"+getRoomName()+"/recordings", function(data) {
$.get("/rooms/"+getEncryptedId()+"/recordings", function(data) {
if (!data.is_owner) {
table.column(-1).visible( false );
}

View File

@ -4,7 +4,7 @@ $.ajaxSetup({
}
});
var getRoomName = function() {
var getEncryptedId = function() {
return $(".page-wrapper.rooms").data('room');
}