On the login page, focus on the password field.

Stefan van der Walt 14 years ago
parent 06d34fea72
commit 23ff0c2f88

@ -2,7 +2,16 @@
{% block content_panel %}
<form action="/login?next={{url_escape(next)}}" method="post">
Password: <input type="password" name="password">
Password: <input type="password" name="password" id="focus">
<input type="submit" value="Sign in" id="signin">
</form>
{% end %}
{% block script %}
<script type="text/javascript">
$(document).ready(function() {
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
$('#focus').focus();
});
</script>
{% end %}

@ -7,3 +7,11 @@
Proceed to the <a href="/login">login page</a>.
{% end %}
{% end %}
{% block script %}
<script type="text/javascript">
$(document).ready(function() {
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
});
</script>
{% end %}

Loading…
Cancel
Save