diff --git a/app/views/origami/jcb/index.html.erb b/app/views/origami/jcb/index.html.erb
index 42927273..eaf1f07e 100644
--- a/app/views/origami/jcb/index.html.erb
+++ b/app/views/origami/jcb/index.html.erb
@@ -174,13 +174,30 @@ $('#jcb_pay').on('click',function(){
data: "amount="+ amount + "&sale_id="+ sale_id,
success:function(result){
if(result){
- alert("Payment success")
- window.location.href = '/origami/sale/'+ sale_id + "/payment";
+ $.confirm({
+ title: 'Infomation!',
+ content: 'Payment Successfully',
+ buttons: {
+ confirm: {
+ text: 'Ok',
+ btnClass: 'btn-green',
+ action: function(){
+ window.location.href = '/origami/sale/'+ sale_id + "/payment";
+ }
+ }
+ }
+ });
}
}
});
}else{
- alert("Paid Amount is over!");
+ $.alert({
+ title: 'Alert!',
+ content: "Paid Amount is over!",
+ type: 'red',
+ typeAnimated: true,
+ btnClass: 'btn-danger',
+ });
}
})
diff --git a/app/views/origami/master/index.html.erb b/app/views/origami/master/index.html.erb
index 14286215..ab396252 100644
--- a/app/views/origami/master/index.html.erb
+++ b/app/views/origami/master/index.html.erb
@@ -171,13 +171,30 @@
data: "amount="+ amount + "&sale_id="+ sale_id,
success:function(result){
if(result){
- alert("Payment success")
- window.location.href = '/origami/sale/'+ sale_id + "/payment";
+ $.confirm({
+ title: 'Infomation!',
+ content: 'Payment Successfully',
+ buttons: {
+ confirm: {
+ text: 'Ok',
+ btnClass: 'btn-green',
+ action: function(){
+ window.location.href = '/origami/sale/'+ sale_id + "/payment";
+ }
+ }
+ }
+ });
}
}
});
}else{
- alert("Paid Amount is over!");
+ $.alert({
+ title: 'Alert!',
+ content: "Paid Amount is over!",
+ type: 'red',
+ typeAnimated: true,
+ btnClass: 'btn-danger',
+ });
}
})
diff --git a/app/views/origami/mpu/index.html.erb b/app/views/origami/mpu/index.html.erb
index 263996b7..30d12d35 100644
--- a/app/views/origami/mpu/index.html.erb
+++ b/app/views/origami/mpu/index.html.erb
@@ -172,13 +172,30 @@
data: "amount="+ amount + "&sale_id="+ sale_id,
success:function(result){
if(result){
- alert("Payment success")
- window.location.href = '/origami/sale/'+ sale_id + "/payment";
- }
+ $.confirm({
+ title: 'Infomation!',
+ content: 'Payment Successfully',
+ buttons: {
+ confirm: {
+ text: 'Ok',
+ btnClass: 'btn-green',
+ action: function(){
+ window.location.href = '/origami/sale/'+ sale_id + "/payment";
+ }
+ }
+ }
+ });
+ }
}
});
}else{
- alert("Paid Amount is over!")
+ $.alert({
+ title: 'Alert!',
+ content: "Paid Amount is over!",
+ type: 'red',
+ typeAnimated: true,
+ btnClass: 'btn-danger',
+ });
}
})
diff --git a/app/views/origami/visa/index.html.erb b/app/views/origami/visa/index.html.erb
index bc78608b..073b7e60 100644
--- a/app/views/origami/visa/index.html.erb
+++ b/app/views/origami/visa/index.html.erb
@@ -171,13 +171,30 @@
data: "amount="+ amount + "&sale_id="+ sale_id,
success:function(result){
if(result){
- alert("Payment success")
- window.location.href = '/origami/sale/'+ sale_id + "/payment";
+ $.confirm({
+ title: 'Infomation!',
+ content: 'Payment Successfully',
+ buttons: {
+ confirm: {
+ text: 'Ok',
+ btnClass: 'btn-green',
+ action: function(){
+ window.location.href = '/origami/sale/'+ sale_id + "/payment";
+ }
+ }
+ }
+ });
}
}
});
}else{
- alert("Paid Amount is over!");
+ $.alert({
+ title: 'Alert!',
+ content: "Paid Amount is over!",
+ type: 'red',
+ typeAnimated: true,
+ btnClass: 'btn-danger',
+ });
}
})