templates: use <button> for buttons
(incidentally this fixes the cancel button behaviour)
This commit is contained in:
parent
79871d20f0
commit
2c2c27dbd1
|
@ -7,16 +7,16 @@
|
||||||
personnels (token).
|
personnels (token).
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" name="{{ submit_name }}" value="{% trans "Login" %}"/>
|
<button name="{{ submit_name }}">{% trans "Login" %}</button>
|
||||||
{% if cancel %}
|
{% if cancel %}
|
||||||
<input type="submit" name="cancel" value="{% trans 'Cancel' %}"/>
|
<button name="cancel">{% trans 'Cancel' %}</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#csam-login img').on('click', function() {
|
$('#csam-login img').on('click', function() {
|
||||||
$('#csam-login input[name={{submit_name}}]').click();
|
$('#csam-login button[name={{submit_name}}]').click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue