diff options
Diffstat (limited to 'views/default/account/login_dropdown.php')
-rw-r--r-- | views/default/account/login_dropdown.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/views/default/account/login_dropdown.php b/views/default/account/login_dropdown.php index 29eca2347..dc124f4e8 100644 --- a/views/default/account/login_dropdown.php +++ b/views/default/account/login_dropdown.php @@ -18,11 +18,11 @@ if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { ?> -<div id="login_dropdown"> - <div id="signin_button" class="signin_button"> +<div id="login-dropdown"> + <div id="signin-button" class="signin-button"> <a href="<?php echo $CONFIG->url; ?>pg/login" class="signin"><span><?php echo elgg_echo('login') ?></span></a> </div> - <fieldset id="signin_menu"> + <fieldset id="signin-menu"> <?php echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$login_url}action/login")); ?> </fieldset> </div> @@ -32,19 +32,19 @@ $(document).ready(function() { $(".signin").click(function(e) { e.preventDefault(); - $("fieldset#signin_menu").toggle(); - $(".signin").toggleClass("menu_open"); - $('.login_textarea.name').focus(); + $("fieldset#signin-menu").toggle(); + $(".signin").toggleClass("menu-open"); + $('.login-textarea.name').focus(); }); - $("fieldset#signin_menu").mouseup(function() { + $("fieldset#signin-menu").mouseup(function() { return false }); $(document).mouseup(function(e) { if($(e.target).parent("a.signin").length==0) { - $(".signin").removeClass("menu_open"); - $("fieldset#signin_menu").hide(); + $(".signin").removeClass("menu-open"); + $("fieldset#signin-menu").hide(); } }); |