update checking booking

This commit is contained in:
Aung Myo
2017-12-14 17:10:05 +06:30
parent fc45198542
commit 035d0851ee
6 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
App.checkin = App.cable.subscriptions.create('CheckInBookingChannel', {
// App.messages = App.cable.subscriptions.create('MessagesChannel', {
connected: function() {},
disconnected: function() {},
received: function(data) {
$('.table_'+data.table.id).removeClass('green');
$('.table_'+data.table.id).addClass('orange');
$('.new_text_'+data.table.id).removeClass('hide')
}
});