add customer confirm button fixed
This commit is contained in:
@@ -9,7 +9,9 @@
|
|||||||
</span>
|
</span>
|
||||||
</ul>
|
</ul>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
<div id="loading_wrapper" style="display:none;">
|
||||||
|
<div id="loading"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
@@ -658,13 +660,14 @@
|
|||||||
|
|
||||||
swal({
|
swal({
|
||||||
title: "Confirmation !",
|
title: "Confirmation !",
|
||||||
text: 'Are You Sure to assign this customer' + customer + '!',
|
text: 'Are you sure to assign this customer' + customer + '!',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: "green",
|
confirmButtonColor: "green",
|
||||||
confirmButtonText: "Yes!",
|
confirmButtonText: "Yes!",
|
||||||
cancelButtonClass: 'btn btn-danger',
|
cancelButtonClass: 'btn btn-danger',
|
||||||
closeOnConfirm: false,
|
closeOnConfirm: true,
|
||||||
}, function () {
|
}, function () {
|
||||||
|
$( "#loading_wrapper").show();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/origami/"+sale_id+"/"+cashier_type+"/customers/update_sale" ,
|
url: "/origami/"+sale_id+"/"+cashier_type+"/customers/update_sale" ,
|
||||||
|
|||||||
Reference in New Issue
Block a user