second display
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
$(function() {
|
||||
var role = $('#role').val();
|
||||
var second_display_lookup = $("#display_type");
|
||||
console.log(second_display_lookup)
|
||||
var second_display_lookup = $("#display_type").val();
|
||||
console.log(second_display_lookup);
|
||||
type = window.location.href.indexOf("quick_service") || window.location.href.indexOf("food_court");
|
||||
modify_order = window.location.href.indexOf("modify_order");
|
||||
|
||||
@@ -984,6 +984,10 @@ $(function() {
|
||||
$('#sx_itemModal').on('click','#remove', function(){
|
||||
$('.summary-items tr').filter(function(){
|
||||
if ($(this).attr('data-active') == 'true'){
|
||||
if ($('#server_mode').val() != "cloud" && second_display_lookup == 2) {
|
||||
item = get_item(item_data,"remove_icon");
|
||||
customer_display_view(item,"remove");
|
||||
}
|
||||
$(this).remove();
|
||||
}
|
||||
});
|
||||
@@ -1049,6 +1053,12 @@ $(function() {
|
||||
$(this).find('.item-cell-price').text(total_price);
|
||||
|
||||
$(this).removeAttr('data-active');
|
||||
|
||||
if ($('#server_mode').val() != "cloud" && second_display_lookup == 2) {
|
||||
var item_data = $(this);
|
||||
item = get_item(item_data,"update_icon");
|
||||
customer_display_view(item,"update_qty");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user