Merge branch 'adminbsb_ui_changes' of bitbucket.org:code2lab/sxrestaurant

This commit is contained in:
phyusin
2018-06-11 18:26:58 +06:30

View File

@@ -246,8 +246,20 @@ $('#junction_pay').on('click',function(){
}; };
resError = function(err_message){ resError = function(err_message){
if(err_message != "ERROR: Verification cancelled"){
$("#loading_wrapper").hide(); $("#loading_wrapper").hide();
swal ( "Oops" , err_message , "error" ); swal({
title: "Oops!",
text: err_message,
type: "error",
html: true,
closeOnConfirm: false,
closeOnCancel: false,
allowOutsideClick: false
}, function () {
window.location.href = '/origami/sale/'+ sale_id +"/"+cashier_type+"/payment/others_payment";
});
}
}; };
// $("#loading_wrapper").hide(); // $("#loading_wrapper").hide();
// $.ajax({type: "POST", // $.ajax({type: "POST",