diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 16:58:38 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 16:58:38 -0700 |
commit | 7bdb9a49e5b038b21445d77c21f63b18619f8fb8 (patch) | |
tree | 36dc38ebba79c618337d5e59057b996c46df1e2f /modules | |
parent | 2992daa00e09d5452e3baf0c279a93220d7a362b (diff) |
Focus on the username field by default.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/views/error_404.html.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/gallery/views/error_404.html.php b/modules/gallery/views/error_404.html.php index 4b037a79..42f62b6c 100644 --- a/modules/gallery/views/error_404.html.php +++ b/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>
\ No newline at end of file +</div> |