Disabled Client JS Action Cable
This commit is contained in:
parent
35827a2e25
commit
b929190cf5
2 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue