summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-02-22 10:38:00 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-02-22 10:38:00 +0100
commitcabc62f0743be6c6e935f25a90c983d09aeb0e85 (patch)
tree9a5992f39a6efb3319b312ca54641abb164dc5bb
parent6875265c1097d74bc6cad0decfa27ac11bf75789 (diff)
downloadarchweb-cabc62f0743be6c6e935f25a90c983d09aeb0e85.tar.gz
archweb-cabc62f0743be6c6e935f25a90c983d09aeb0e85.zip
templates: remove JavaScript form login page
Remove setting focus on the username since this already works without Javascript.
-rw-r--r--templates/registration/login.html11
1 files changed, 0 insertions, 11 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html
index f9acbe99..81f2463b 100644
--- a/templates/registration/login.html
+++ b/templates/registration/login.html
@@ -16,14 +16,3 @@
</form>
</div>
{% endblock %}
-
-{% block script_block %}
-{% load cdn %}{% jquery %}
-<script type="text/javascript" src="{% static "archweb.js" %}"></script>
-<script type="text/javascript" nonce={{ CSP_NONCE }}>
- modify_attributes({
- '#id_username': {autocorrect: 'off', autocapitalize: 'off'}
- });
- $('#id_username').focus();
-</script>
-{% endblock %}