Commit d4c9cf69 authored by Patrick Kimber's avatar Patrick Kimber

Submit button should not have an 'id' of 'submit'

- Our checkout code calls ``$('#id_checkout_form').submit();``
  This StackOverflow article:
  https://stackoverflow.com/questions/22982741/form-submit-jquery-does-not-work
  says:
  The NUMBER ONE error is to have ANYTHING with ID or NAME "submit" in
  your form!

https://www.kbsoftware.co.uk/crm/ticket/3064/
parent 210a3597
......@@ -76,7 +76,7 @@ submit_2_id and submit_2_name and submit_2_value: three variables to allow
{% endfor %}
<div class="pure-controls">
<p>
<input type="submit" id="{% if submit_id %}{{ submit_id }}{% else %}submit{% endif %}" value="{% if submit %}{{ submit }}{% else %}Submit{% endif %}" class="pure-button pure-button-primary" />
<input type="submit" id="{% if submit_id %}{{ submit_id }}{% else %}submit_1{% endif %}" value="{% if submit %}{{ submit }}{% else %}Submit{% endif %}" class="pure-button pure-button-primary" />
{% if submit_2_id and submit_2_name and submit_2_value %}
<input type="submit" id="{{ submit_2_id }}" name="{{ submit_2_name }}" value="{{ submit_2_value }}" class="pure-button" />
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment