split bill multi-click event off for swal alert
This commit is contained in:
@@ -392,7 +392,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
//order_item_split
|
//order_item_split
|
||||||
$('#order_item_split').on('click',function () {
|
$('#order_item_split').on('click',function (e) {
|
||||||
|
e.preventDefault();
|
||||||
var cnt_order_item = "<%= order_item_count %>";
|
var cnt_order_item = "<%= order_item_count %>";
|
||||||
var order_items = get_selected_order_items();// Selected Order Items
|
var order_items = get_selected_order_items();// Selected Order Items
|
||||||
var cnt_items = parseInt(cnt_order_item) - parseInt(order_items.length);
|
var cnt_items = parseInt(cnt_order_item) - parseInt(order_items.length);
|
||||||
@@ -405,12 +406,16 @@
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: "#DD6B55",
|
confirmButtonColor: "#DD6B55",
|
||||||
confirmButtonText: "Yes, split it!",
|
confirmButtonText: "Yes, split it!",
|
||||||
closeOnConfirm: false
|
closeOnConfirm: false,
|
||||||
}, function (isConfirm) {
|
allowOutsideClick: false,
|
||||||
|
html: false
|
||||||
|
},function(isConfirm){
|
||||||
if(isConfirm){
|
if(isConfirm){
|
||||||
|
swal.close();
|
||||||
orderItemSplitBillProcess(cnt_items);
|
orderItemSplitBillProcess(cnt_items);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// }
|
// }
|
||||||
// else{
|
// else{
|
||||||
// orderItemSplitBillProcess(cnt_items);
|
// orderItemSplitBillProcess(cnt_items);
|
||||||
@@ -470,9 +475,12 @@
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: "#DD6B55",
|
confirmButtonColor: "#DD6B55",
|
||||||
confirmButtonText: "Yes, split it!",
|
confirmButtonText: "Yes, split it!",
|
||||||
closeOnConfirm: false
|
closeOnConfirm: false,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
html: false
|
||||||
}, function (isConfirm) {
|
}, function (isConfirm) {
|
||||||
if(isConfirm){
|
if(isConfirm){
|
||||||
|
swal.close();
|
||||||
orderSplitBillProcess(cnt_odrs);
|
orderSplitBillProcess(cnt_odrs);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user