diff --git a/app/assets/javascripts/channels/order_reservation.js b/app/assets/javascripts/channels/order_reservation.js index d257e2b0..9c905978 100644 --- a/app/assets/javascripts/channels/order_reservation.js +++ b/app/assets/javascripts/channels/order_reservation.js @@ -15,6 +15,12 @@ App.order_reservation = App.cable.subscriptions.create('OrderReservationChannel' $.each(order, function(key,value){ var active_class = ""; 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"; if (typeof audioPlayBackground !== 'undefined' && $.isFunction(audioPlayBackground)) { audioPlayBackground(shop_code,audio);