login: Focus the username field on load
[patchwork] / patchwork / templates / patchwork / login.html
index 2dfc2a7bb8498ef843933e45744597c76ddfef05..1f000e7df95b15e7005529aedd744deb846d4ff4 100644 (file)
@@ -3,6 +3,13 @@
 {% block title %}Login{% endblock %}
 {% block heading %}Login{% endblock %}
 
+{% block headers %}
+  <script type="text/javascript">
+    $(function() {
+        $('#id_username').focus()
+    });
+  </script>
+{% endblock %}
 
 {% block body %}
 <form method="post">