summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-01 20:48:57 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-01 20:48:57 -0700
commit56ca3b09b637fdae25e45bc454a1574486cb3aef (patch)
treed5bdb21502839e6717aee2a7701487a27c3ed081 /modules/gallery/views
parent9369fd55a36183b7dc1e4b42af46a8f649a66578 (diff)
Focus on the username field by default. Don't use jQuery because we're operating in a very limited context.
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/maintenance.html.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/views/maintenance.html.php b/modules/gallery/views/maintenance.html.php
index 6351b6ab..0b832a2d 100644
--- a/modules/gallery/views/maintenance.html.php
+++ b/modules/gallery/views/maintenance.html.php
@@ -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>