Merge branch 'develop' into staging

This commit is contained in:
Xavier J 2017-01-02 10:25:57 +01:00
commit 64e4d34b5a
2 changed files with 15 additions and 15 deletions

View file

@ -5,9 +5,9 @@
//= require_self //= require_self
//= require_tree ./channels //= require_tree ./channels
(function() { //(function() {
this.App || (this.App = {}); // this.App || (this.App = {});
//
App.cable = ActionCable.createConsumer(); // App.cable = ActionCable.createConsumer();
//
}).call(this); //}).call(this);

View file

@ -1,12 +1,12 @@
App.messages = App.cable.subscriptions.create('NotificationsChannel', { //App.messages = App.cable.subscriptions.create('NotificationsChannel', {
received: function (data) { // received: function (data) {
if (window.location.href.indexOf('backoffice') !== -1) { // if (window.location.href.indexOf('backoffice') !== -1) {
$("#notification_alert").html(data['message']); // $("#notification_alert").html(data['message']);
//
slideIn_notification_alert(); // slideIn_notification_alert();
} // }
} // }
}); //});
function slideIn_notification_alert (){ function slideIn_notification_alert (){
$("#notification_alert").animate({ $("#notification_alert").animate({