Reset amount and recurring fields on error

This commit is contained in:
PCoder 2018-09-26 09:09:12 +02:00
parent 9ff20491bd
commit 5df2080f92

View file

@ -47,6 +47,8 @@ $(document).ready(function () {
} }
}, },
error: function (xmlhttprequest, textstatus, message) { error: function (xmlhttprequest, textstatus, message) {
$("#id_generic_payment_form-amount").val('');
$('#id_generic_payment_form-recurring').prop('checked', false);
console.log("Error fetching product") console.log("Error fetching product")
} }
}); });