From e49840a1592565712d7e4aec92f1a92162dc8186 Mon Sep 17 00:00:00 2001 From: yarzar_code Date: Mon, 24 Aug 2020 14:23:22 +0630 Subject: [PATCH] add customer confirm button fixed --- app/views/origami/customers/index.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/origami/customers/index.html.erb b/app/views/origami/customers/index.html.erb index e3ed07cb..fb1e7e14 100644 --- a/app/views/origami/customers/index.html.erb +++ b/app/views/origami/customers/index.html.erb @@ -9,7 +9,9 @@ --> - +
@@ -658,13 +660,14 @@ swal({ title: "Confirmation !", - text: 'Are You Sure to assign this customer' + customer + '!', + text: 'Are you sure to assign this customer' + customer + '!', showCancelButton: true, confirmButtonColor: "green", confirmButtonText: "Yes!", cancelButtonClass: 'btn btn-danger', - closeOnConfirm: false, + closeOnConfirm: true, }, function () { + $( "#loading_wrapper").show(); $.ajax({ type: "POST", url: "/origami/"+sale_id+"/"+cashier_type+"/customers/update_sale" ,