Reset amount and recurring fields on error
This commit is contained in:
parent
9ff20491bd
commit
5df2080f92
|
@ -47,6 +47,8 @@ $(document).ready(function () {
|
|||
}
|
||||
},
|
||||
error: function (xmlhttprequest, textstatus, message) {
|
||||
$("#id_generic_payment_form-amount").val('');
|
||||
$('#id_generic_payment_form-recurring').prop('checked', false);
|
||||
console.log("Error fetching product")
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue