From fbfcfee331d768c20e86585c644628b1bf3f14b7 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 9 Oct 2011 17:38:09 -0400 Subject: Fixes #3673 added autofocus class --- views/default/core/account/login_box.php | 9 --------- views/default/forms/login.php | 6 +++++- views/default/forms/register.php | 7 +------ views/default/forms/user/requestnewpassword.php | 12 +++++------- 4 files changed, 11 insertions(+), 23 deletions(-) (limited to 'views/default') diff --git a/views/default/core/account/login_box.php b/views/default/core/account/login_box.php index 274172bdb..8c586d425 100644 --- a/views/default/core/account/login_box.php +++ b/views/default/core/account/login_box.php @@ -15,12 +15,3 @@ $title = elgg_echo('login'); $body = elgg_view_form('login', array('action' => "{$login_url}action/login")); echo elgg_view_module('aside', $title, $body); - -?> - - - diff --git a/views/default/forms/login.php b/views/default/forms/login.php index 91e9cda42..956b3a87f 100644 --- a/views/default/forms/login.php +++ b/views/default/forms/login.php @@ -9,7 +9,11 @@
- 'username')); ?> + 'username', + 'class' => 'elgg-autofocus', + )); + ?>
diff --git a/views/default/forms/register.php b/views/default/forms/register.php index 6e18cd53d..411152205 100644 --- a/views/default/forms/register.php +++ b/views/default/forms/register.php @@ -23,6 +23,7 @@ if (elgg_is_sticky_form('register')) { echo elgg_view('input/text', array( 'name' => 'name', 'value' => $name, + 'class' => 'elgg-autofocus', )); ?>
@@ -75,9 +76,3 @@ echo elgg_view('input/hidden', array('name' => 'friend_guid', 'value' => $vars[' echo elgg_view('input/hidden', array('name' => 'invitecode', 'value' => $vars['invitecode'])); echo elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('register'))); echo ''; -?> - \ No newline at end of file diff --git a/views/default/forms/user/requestnewpassword.php b/views/default/forms/user/requestnewpassword.php index 22357e728..8a5a18734 100644 --- a/views/default/forms/user/requestnewpassword.php +++ b/views/default/forms/user/requestnewpassword.php @@ -12,15 +12,13 @@

- 'username')); ?> + 'username', + 'class' => 'elgg-autofocus', + )); + ?>
elgg_echo('request'))); ?>
- - \ No newline at end of file -- cgit v1.2.3