aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/forms/register.php')
-rw-r--r--views/default/forms/register.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/views/default/forms/register.php b/views/default/forms/register.php
index 4e0a521ab..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',
));
?>
</div>
@@ -70,12 +71,8 @@ echo elgg_view('register/extend');
// Add captcha hook
echo elgg_view('input/captcha');
+echo '<div class="elgg-foot">';
echo elgg_view('input/hidden', array('name' => 'friend_guid', 'value' => $vars['friend_guid']));
echo elgg_view('input/hidden', array('name' => 'invitecode', 'value' => $vars['invitecode']));
echo elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('register')));
-?>
-<script type="text/javascript">
- $(function() {
- $('input[name=name]').focus();
- });
-</script> \ No newline at end of file
+echo '</div>';