Set the focus to the 'username' field when the page is loaded.

fixes #235
This commit is contained in:
Antoine Nguyen
2012-04-07 15:06:53 +02:00
parent d8c9cafda8
commit a82be58dc4
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ input[type="password"] {
}
.form-actions {
background-color: transparent;
padding-right: 0px;
padding-left: 0px;
}
+5
View File
@@ -11,6 +11,11 @@
<script type="text/javascript" src="{{ MEDIA_URL }}js/bootstrap.js"></script>
{% url django.views.i18n.javascript_catalog as catalog_url %}
<script type="text/javascript" src="{{ catalog_url }}"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#id_username').focus();
});
</script>
</head>
<body>