Focus on the username field by default. Don't use jQuery because we're operating in a very limited context.

This commit is contained in:
Bharat Mediratta
2010-08-01 20:48:57 -07:00
parent 9369fd55a3
commit 56ca3b09b6

View File

@@ -44,6 +44,9 @@
<?= t("This site is currently only accessible by site administrators.") ?>
</p>
<?= auth::get_login_form("login/auth_html") ?>
<script type="text/javascript">
document.forms[0].name.focus();
</script>
</body>
</html>