add bill channel for req bill

This commit is contained in:
Yan
2017-09-07 15:35:00 +06:30
parent e9a305b573
commit f67d4197ec
8 changed files with 48 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
App.order = App.cable.subscriptions.create('BillChannel', {
// App.messages = App.cable.subscriptions.create('MessagesChannel', {
connected: function() {},
disconnected: function() {},
received: function(data) {
$('.table_'+data.table.id).removeClass('blue');
$('.table_'+data.table.id).addClass('red');
$('.new_text_'+data.table.id).removeClass('hide')
},
});