aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/account/login_box.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/core/account/login_box.php')
-rw-r--r--views/default/core/account/login_box.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/views/default/core/account/login_box.php b/views/default/core/account/login_box.php
index c2d19f904..40482c3df 100644
--- a/views/default/core/account/login_box.php
+++ b/views/default/core/account/login_box.php
@@ -10,15 +10,17 @@ $login_url = elgg_get_site_url();
if (elgg_get_config('https_login')) {
$login_url = str_replace("http:", "https:", $login_url);
}
+
+$title = elgg_echo('login');
+$body = elgg_view_form('login', array('action' => "{$login_url}action/login"));
+
+echo elgg_view_module('login', $title, $body);
+
?>
-<div id="login">
-<h2><?php echo elgg_echo('login'); ?></h2>
- <?php
- echo elgg_view_form('login', array('action' => "{$login_url}action/login"));
- ?>
-</div>
-<?php //@todo JS 1.8: no ?>
+
<script type="text/javascript">
- $(document).ready(function() { $('input[name=username]').focus(); });
+ elgg.register_event_handler('init', 'system', function() {
+ $('input[name=username]').focus();
+ });
</script>