change order reservation first-click

This commit is contained in:
phyusin
2018-06-04 11:01:12 +06:30
parent 9f24c56e61
commit 65bb223514

View File

@@ -15,6 +15,12 @@ App.order_reservation = App.cable.subscriptions.create('OrderReservationChannel'
$.each(order, function(key,value){ $.each(order, function(key,value){
var active_class = ""; var active_class = "";
if(key==0){ if(key==0){
var order_id = value.order_reservation_id;
var sr_no = rowCount;
var url = "order_reservation/get_order/"+order_id;
if (typeof show_order_detail !== 'undefined' && $.isFunction(show_order_detail)) {
show_order_detail(url,sr_no);
}
active_class = "tr-active"; active_class = "tr-active";
if (typeof audioPlayBackground !== 'undefined' && $.isFunction(audioPlayBackground)) { if (typeof audioPlayBackground !== 'undefined' && $.isFunction(audioPlayBackground)) {
audioPlayBackground(shop_code,audio); audioPlayBackground(shop_code,audio);