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_tree ./channels
(function() {
this.App || (this.App = {});
App.cable = ActionCable.createConsumer();
}).call(this);
//(function() {
// this.App || (this.App = {});
//
// App.cable = ActionCable.createConsumer();
//
//}).call(this);

View file

@ -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({