diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js index 9139c80fd..daa54bbb2 100644 --- a/app/assets/javascripts/cable.js +++ b/app/assets/javascripts/cable.js @@ -5,9 +5,9 @@ //= require_self //= require_tree ./channels -(function() { - this.App || (this.App = {}); - - App.cable = ActionCable.createConsumer(); - -}).call(this); +//(function() { +// this.App || (this.App = {}); +// +// App.cable = ActionCable.createConsumer(); +// +//}).call(this); diff --git a/app/assets/javascripts/channels/notifications.js b/app/assets/javascripts/channels/notifications.js index 78248d290..4445c9110 100644 --- a/app/assets/javascripts/channels/notifications.js +++ b/app/assets/javascripts/channels/notifications.js @@ -1,12 +1,12 @@ -App.messages = App.cable.subscriptions.create('NotificationsChannel', { - received: function (data) { - if (window.location.href.indexOf('backoffice') !== -1) { - $("#notification_alert").html(data['message']); - - slideIn_notification_alert(); - } - } -}); +//App.messages = App.cable.subscriptions.create('NotificationsChannel', { +// received: function (data) { +// if (window.location.href.indexOf('backoffice') !== -1) { +// $("#notification_alert").html(data['message']); +// +// slideIn_notification_alert(); +// } +// } +//}); function slideIn_notification_alert (){ $("#notification_alert").animate({