1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for tests

This commit is contained in:
Hillel Coren 2018-03-15 21:01:35 +02:00
parent 2ea132cf49
commit d4b181e32b

View File

@ -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;