check shop code in order reservation

This commit is contained in:
phyusin
2018-05-11 17:14:42 +06:30
parent e618cd6e6d
commit c65bf1c163
3 changed files with 8 additions and 8 deletions

View File

@@ -8,12 +8,12 @@ App.order_reservation = App.cable.subscriptions.create('OrderReservationChannel'
var order = data.data;
if(order.length > 0){
$('.custom-table.'+shop_code+'_order_reserve_cable tbody').html("");
$(".nav-item.red > a > p.num").text(order.length);
$(".nav-item ."+shop_code+" .red > a > p.num").text(order.length);
$.each(order, function(key,value){
var active_class = "";
if(key==0){
active_class = "tr-active";
showNewOrder(order[key]);
showNewOrder(order[key],shop_code);
}
var rowCount = key+1;
var date = new Date(value.created_at);