Fix for Braintree duplicate submission check
This commit is contained in:
parent
0b998487d7
commit
5e8682be0a
1 changed files with 1 additions and 2 deletions
|
|
@ -37,7 +37,7 @@
|
|||
onError: function(e) {
|
||||
$form.find('button').prop('disabled', false);
|
||||
NINJA.formIsSubmitted = false;
|
||||
|
||||
|
||||
// Show the errors on the form
|
||||
if (e.details && e.details.invalidFieldKeys.length) {
|
||||
var invalidField = e.details.invalidFieldKeys[0];
|
||||
|
|
@ -58,7 +58,6 @@
|
|||
},
|
||||
onPaymentMethodReceived: function(e) {
|
||||
if (NINJA.formIsSubmitted) {
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
NINJA.formIsSubmitted = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue