Fix for tests
This commit is contained in:
parent
2ea132cf49
commit
d4b181e32b
1 changed files with 2 additions and 1 deletions
|
|
@ -47,13 +47,14 @@
|
|||
|
||||
$(function() {
|
||||
$('.payment-form').submit(function(event) {
|
||||
var $form = $(this);
|
||||
|
||||
if ($form.find('button').is(':disabled')) {
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Disable the submit button to prevent repeated clicks
|
||||
var $form = $(this);
|
||||
$form.find('button').prop('disabled', true);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue