From a8a86e3202acc7d82adcdae3e107cd48dd440ba0 Mon Sep 17 00:00:00 2001 From: phyusin Date: Fri, 12 Jan 2018 16:36:59 +0630 Subject: [PATCH] show success message for settle --- app/views/origami/shifts/show.html.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/views/origami/shifts/show.html.erb b/app/views/origami/shifts/show.html.erb index 0f9265e6..f2ee019e 100755 --- a/app/views/origami/shifts/show.html.erb +++ b/app/views/origami/shifts/show.html.erb @@ -168,6 +168,17 @@ } else if(payment_type == "CUP"){ $("#loading_wrapper").hide(); + swal({ + title: 'Information!', + text: 'Settlement is successfully.', + type: 'success', + html: true, + closeOnConfirm: false, + closeOnCancel: false, + allowOutsideClick: false + }, function () { + window.location.href = '/origami/shift/close'; + }); // reqCBBankAlipaySettlement(); } // else if(payment_type == "Alipay"){