update checking booking
This commit is contained in:
14
app/assets/javascripts/channels/check_in_booking.js
Normal file
14
app/assets/javascripts/channels/check_in_booking.js
Normal 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')
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user