aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/account/login_box.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-13 00:35:19 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-13 00:35:19 +0000
commit6a66883178714f471ff95f3ff75d4caa0855c180 (patch)
tree18be7c71bf1ce903e17d273bad4cfc5bf612ae20 /views/default/core/account/login_box.php
parent1108af52171c74116c19213e31ea36387bbb5894 (diff)
downloadelgg-6a66883178714f471ff95f3ff75d4caa0855c180.tar.gz
elgg-6a66883178714f471ff95f3ff75d4caa0855c180.tar.bz2
Progress refactoring the login dropdown and login forms -- not quite there yet, though
Added another module: dropdown. git-svn-id: http://code.elgg.org/elgg/trunk@8191 36083f99-b078-4883-b0ff-0f9b5a30f544
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>