Fixes payment form behaviour.
This commit is contained in:
parent
99d0cf1440
commit
c1fab4fcc2
1 changed files with 2 additions and 4 deletions
|
@ -55,9 +55,7 @@
|
||||||
|
|
||||||
// Submit the form:
|
// Submit the form:
|
||||||
|
|
||||||
$submit.prop('disabled', false);
|
$form.get(0).submit();
|
||||||
$submit.click();
|
|
||||||
$submit.prop('disabled', true);
|
|
||||||
$form.append($('<p>').text("Processing your payment. Please do not refresh."));
|
$form.append($('<p>').text("Processing your payment. Please do not refresh."));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -85,6 +83,6 @@
|
||||||
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{form|bootstrap}}
|
{{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>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue