Permalink
Browse files

Focus on the username field by default.

  • Loading branch information...
1 parent 2992daa commit 7bdb9a49e5b038b21445d77c21f63b18619f8fb8 @bharat bharat committed Jun 20, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 modules/gallery/views/error_404.html.php
@@ -12,10 +12,15 @@
<?= t("Please sign in to find out.") ?>
</p>
<?= $login_form ?>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $("#g-username").focus();
+ });
+ </script>
<? else: ?>
<p>
<?= t("Maybe the page exists, but is only visible to authorized users.") ?>
<?= t("If you think this is an error, talk to your Gallery administrator!") ?>
</p>
<? endif; ?>
-</div>
+</div>

0 comments on commit 7bdb9a4

Please sign in to comment.