add audio for order reservation
This commit is contained in:
@@ -8,6 +8,7 @@ App.order_reservation = App.cable.subscriptions.create('OrderReservationChannel'
|
||||
if(data.from == "" || hostname == data.from){
|
||||
var shop_code = data.shop_code;
|
||||
var order = data.data;
|
||||
var audio = data.audio;
|
||||
if(order.length > 0){
|
||||
$('.custom-table.'+shop_code+'_order_reserve_cable tbody').html("");
|
||||
$("."+shop_code+" > .nav-item.red > a > p.num").text(order.length);
|
||||
@@ -16,7 +17,7 @@ App.order_reservation = App.cable.subscriptions.create('OrderReservationChannel'
|
||||
if(key==0){
|
||||
active_class = "tr-active";
|
||||
if (typeof audioPlayBackground !== 'undefined' && $.isFunction(audioPlayBackground)) {
|
||||
audioPlayBackground(shop_code);
|
||||
audioPlayBackground(shop_code,audio);
|
||||
}
|
||||
if (typeof showNewOrderAlert !== 'undefined' && $.isFunction(showNewOrderAlert)) {
|
||||
showNewOrderAlert(order[key],shop_code);
|
||||
|
||||
Reference in New Issue
Block a user