Reset amount and recurring fields on error
This commit is contained in:
parent
9ff20491bd
commit
5df2080f92
1 changed files with 2 additions and 0 deletions
|
@ -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