aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-30 21:35:55 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-30 21:35:55 +0000
commit4ffb02ad9c1b95013a0fbf97cefde827600ecc3f (patch)
tree315846eba2b1d64cb8d073549694b7162cefce2f
parent93d1914396fc798b5a346082ae1e195e7ed97ed2 (diff)
downloadelgg-4ffb02ad9c1b95013a0fbf97cefde827600ecc3f.tar.gz
elgg-4ffb02ad9c1b95013a0fbf97cefde827600ecc3f.tar.bz2
Added autofocusing of the username field on the login page.
git-svn-id: http://code.elgg.org/elgg/trunk@3502 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/account/forms/login.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/views/default/account/forms/login.php b/views/default/account/forms/login.php
index 52e8b8ee1..030375a19 100644
--- a/views/default/account/forms/login.php
+++ b/views/default/account/forms/login.php
@@ -20,9 +20,7 @@
$form_body .= "<p class=\"loginbox\">";
$form_body .= (!isset($CONFIG->disable_registration) || !($CONFIG->disable_registration)) ? "<a href=\"{$vars['url']}account/register.php\">" . elgg_echo('register') . "</a> | " : "";
$form_body .= "<a href=\"{$vars['url']}account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>";
-
- //<input name=\"username\" type=\"text\" class="general-textarea" /></label>
-
+
$login_url = $vars['url'];
if ((isset($CONFIG->https_login)) && ($CONFIG->https_login))
$login_url = str_replace("http", "https", $vars['url']);
@@ -32,6 +30,8 @@
<h2><?php echo elgg_echo('login'); ?></h2>
<?php
echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$login_url}action/login"));
- ?>
-
- </div> \ No newline at end of file
+ ?>
+ </div>
+ <script type="text/javascript">
+ $(document).ready(function() { $('input[name=username]').focus(); });
+ </script> \ No newline at end of file