mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:04:40 -04:00
Working on payment gateways
This commit is contained in:
parent
5b6a48def8
commit
aa32dcc8de
@ -47,10 +47,9 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NINJA.formIsSubmitted) {
|
if ($form.find('button').is(':disabled')) {
|
||||||
return false;
|
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);
|
||||||
@ -98,7 +97,6 @@
|
|||||||
error = "{{trans('texts.country_not_supported')}}";
|
error = "{{trans('texts.country_not_supported')}}";
|
||||||
}
|
}
|
||||||
$form.find('button').prop('disabled', false);
|
$form.find('button').prop('disabled', false);
|
||||||
NINJA.formIsSubmitted = false;
|
|
||||||
$('#js-error-message').html(error).fadeIn();
|
$('#js-error-message').html(error).fadeIn();
|
||||||
} else {
|
} else {
|
||||||
// response contains id and card, which contains additional card details
|
// response contains id and card, which contains additional card details
|
||||||
|
Loading…
x
Reference in New Issue
Block a user