Fixes payment form behaviour.

This commit is contained in:
Christopher Neugebauer 2016-10-03 16:42:03 -07:00
parent 99d0cf1440
commit c1fab4fcc2

View file

@ -55,9 +55,7 @@
// Submit the form:
$submit.prop('disabled', false);
$submit.click();
$submit.prop('disabled', true);
$form.get(0).submit();
$form.append($('<p>').text("Processing your payment. Please do not refresh."));
}
};
@ -85,6 +83,6 @@
{% csrf_token %}
{{form|bootstrap}}
<input id="submit" class="btn btn-primary" type="submit" value="Pay {{ invoice.balance_due }}" />
<input id="pay" class="btn btn-primary" type="submit" value="Pay {{ invoice.balance_due }}" />
</form>
{% endblock %}