close on confirm changed

This commit is contained in:
yarzar_code
2020-08-10 15:39:18 +06:30
parent 80d7522071
commit 0c4a2e1761
2 changed files with 4 additions and 2 deletions

View File

@@ -123,8 +123,9 @@ function update_sale(membership_id, customer_id, customer_name, sale_id) {
confirmButtonColor: "green",
confirmButtonText: "Yes!",
cancelButtonClass: 'btn btn-danger customer_assign_cancel',
closeOnConfirm: false,
closeOnConfirm: true,
}, function () {
$("#oqs_loading_wrapper").show();
$.ajax({
type: "POST",
url: "/foodcourt/"+sale_id+"/"+cashier_type+"/customers/update_sale" ,

View File

@@ -945,8 +945,9 @@ $(document).ready(function(){
confirmButtonColor: "green",
confirmButtonText: "Yes!",
cancelButtonClass: 'btn btn-danger',
closeOnConfirm: false,
closeOnConfirm: true,
}, function () {
$("#loading_wrapper").show();
$.ajax({
type: "POST",
url: "/foodcourt/"+sale_id+"/"+cashier_type+"/customers/update_sale" ,