Fix for Braintree

This commit is contained in:
Hillel Coren 2018-03-16 09:36:27 +02:00
parent 4dfd720138
commit 4cbed2e1c5

View File

@ -57,11 +57,6 @@
} }
}, },
onPaymentMethodReceived: function(e) { onPaymentMethodReceived: function(e) {
if (NINJA.formIsSubmitted) {
return false;
}
NINJA.formIsSubmitted = true;
// Disable the submit button to prevent repeated clicks // Disable the submit button to prevent repeated clicks
$form.find('button').prop('disabled', true); $form.find('button').prop('disabled', true);
$('#js-error-message').hide(); $('#js-error-message').hide();