Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Focus on the username field by default.
  • Loading branch information
bharat committed Jun 20, 2010
1 parent 2992daa commit 7bdb9a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/gallery/views/error_404.html.php
Expand Up @@ -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.