some changes for order reservation
This commit is contained in:
@@ -36,12 +36,22 @@
|
||||
</span>
|
||||
</div>
|
||||
<!-- Start Shop Info -->
|
||||
<div class="navbar-right">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 navbar-brand">
|
||||
<div class="navbar-right shop-name-margin">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 navbar-brand">
|
||||
<span class="navbar-brand-txt"><%= shop_detail.name %></span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Shop Info -->
|
||||
|
||||
<div class="navbar-right online-order-margin">
|
||||
<% if order_reservation %>
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 online_order">
|
||||
<span class="navbar-brand-txt header-default-color"><%= t :order_reservation %></span>
|
||||
<span class="order_no"></span>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<!-- Start Delete confirrm text !-->
|
||||
<div class="navbar-right">
|
||||
<a href="javascript:void(0);" class="dropdown-toggle waves-block" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
@@ -111,5 +121,15 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.online_order').on('click',function(){
|
||||
window.location.href = '/origami/order_reservation';
|
||||
});
|
||||
|
||||
if(parseInt(getOnlineOrderCount()) > 0){
|
||||
$('.order_no').addClass("order-badge");
|
||||
$('.order_no').html(parseInt(getOnlineOrderCount()));
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user