change order reservation first-click
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user