forked from External/greenlight
		
	oauth update
This commit is contained in:
		@@ -9,7 +9,7 @@
 | 
			
		||||
  var initRooms = function() {
 | 
			
		||||
    App.messages = App.cable.subscriptions.create({
 | 
			
		||||
      channel: 'MeetingUpdatesChannel',
 | 
			
		||||
      username: getRoomName()
 | 
			
		||||
      encrypted_id: getEncryptedId()
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      received: function(data) {
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
  var initRooms = function() {
 | 
			
		||||
    App.messages = App.cable.subscriptions.create({
 | 
			
		||||
      channel: 'RecordingUpdatesChannel',
 | 
			
		||||
      username: getRoomName()
 | 
			
		||||
      encrypted_id: getEncryptedId()
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      received: function(data) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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 );
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ $.ajaxSetup({
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var getRoomName = function() {
 | 
			
		||||
var getEncryptedId = function() {
 | 
			
		||||
  return $(".page-wrapper.rooms").data('room');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +0,0 @@
 | 
			
		||||
.user {
 | 
			
		||||
  .error {
 | 
			
		||||
    p {
 | 
			
		||||
      font-size: 14px;
 | 
			
		||||
      color: red;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  .description {
 | 
			
		||||
    p {
 | 
			
		||||
      font-size: 14px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user