update other payment alert box
This commit is contained in:
@@ -174,13 +174,30 @@ $('#jcb_pay').on('click',function(){
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
alert("Payment success")
|
$.confirm({
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
title: 'Infomation!',
|
||||||
|
content: 'Payment Successfully',
|
||||||
|
buttons: {
|
||||||
|
confirm: {
|
||||||
|
text: 'Ok',
|
||||||
|
btnClass: 'btn-green',
|
||||||
|
action: function(){
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
alert("Paid Amount is over!");
|
$.alert({
|
||||||
|
title: 'Alert!',
|
||||||
|
content: "Paid Amount is over!",
|
||||||
|
type: 'red',
|
||||||
|
typeAnimated: true,
|
||||||
|
btnClass: 'btn-danger',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -171,13 +171,30 @@
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
alert("Payment success")
|
$.confirm({
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
title: 'Infomation!',
|
||||||
|
content: 'Payment Successfully',
|
||||||
|
buttons: {
|
||||||
|
confirm: {
|
||||||
|
text: 'Ok',
|
||||||
|
btnClass: 'btn-green',
|
||||||
|
action: function(){
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
alert("Paid Amount is over!");
|
$.alert({
|
||||||
|
title: 'Alert!',
|
||||||
|
content: "Paid Amount is over!",
|
||||||
|
type: 'red',
|
||||||
|
typeAnimated: true,
|
||||||
|
btnClass: 'btn-danger',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -172,13 +172,30 @@
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
alert("Payment success")
|
$.confirm({
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
title: 'Infomation!',
|
||||||
}
|
content: 'Payment Successfully',
|
||||||
|
buttons: {
|
||||||
|
confirm: {
|
||||||
|
text: 'Ok',
|
||||||
|
btnClass: 'btn-green',
|
||||||
|
action: function(){
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
alert("Paid Amount is over!")
|
$.alert({
|
||||||
|
title: 'Alert!',
|
||||||
|
content: "Paid Amount is over!",
|
||||||
|
type: 'red',
|
||||||
|
typeAnimated: true,
|
||||||
|
btnClass: 'btn-danger',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -171,13 +171,30 @@
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
alert("Payment success")
|
$.confirm({
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
title: 'Infomation!',
|
||||||
|
content: 'Payment Successfully',
|
||||||
|
buttons: {
|
||||||
|
confirm: {
|
||||||
|
text: 'Ok',
|
||||||
|
btnClass: 'btn-green',
|
||||||
|
action: function(){
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
alert("Paid Amount is over!");
|
$.alert({
|
||||||
|
title: 'Alert!',
|
||||||
|
content: "Paid Amount is over!",
|
||||||
|
type: 'red',
|
||||||
|
typeAnimated: true,
|
||||||
|
btnClass: 'btn-danger',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user