From 65bb22351491834b235091947b6b339c91e1083c Mon Sep 17 00:00:00 2001 From: phyusin Date: Mon, 4 Jun 2018 11:01:12 +0630 Subject: [PATCH] change order reservation first-click --- app/assets/javascripts/channels/order_reservation.js | 6 ++++++ 1 file changed, 6 insertions(+) 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);