summaryrefslogtreecommitdiff
path: root/app/Module/LoginBlockModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2016-06-19 19:14:34 +0100
committerGreg Roach <fisharebest@gmail.com>2016-06-19 19:14:34 +0100
commit762f8fb2c6c7a91cf59fd2126f83dd89bc0ee89b (patch)
tree36ade1db93c0ab2ba7a2782abc399ae9e7971515 /app/Module/LoginBlockModule.php
parentec8d7c201801159a36e7ccad1ff479250a06e1b2 (diff)
downloadwebtrees-762f8fb2c6c7a91cf59fd2126f83dd89bc0ee89b.tar.gz
webtrees-762f8fb2c6c7a91cf59fd2126f83dd89bc0ee89b.tar.bz2
webtrees-762f8fb2c6c7a91cf59fd2126f83dd89bc0ee89b.zip
Fix #1003 - hide links in sign-in block
Diffstat (limited to 'app/Module/LoginBlockModule.php')
-rw-r--r--app/Module/LoginBlockModule.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Module/LoginBlockModule.php b/app/Module/LoginBlockModule.php
index 92fc7f1387..532d7539f7 100644
--- a/app/Module/LoginBlockModule.php
+++ b/app/Module/LoginBlockModule.php
@@ -50,9 +50,10 @@ class LoginBlockModule extends AbstractModule implements ModuleBlockInterface {
$controller->addInlineJavascript('
jQuery("#new_passwd").hide();
jQuery("#passwd_click").click(function() {
- jQuery("#new_passwd").slideToggle(100, function() {
- jQuery("#new_passwd_username").focus();
- });
+ jQuery("#new_passwd").slideToggle(200);
+ jQuery("#register-link").slideToggle(200);
+ jQuery("#new_passwd_username").focus();
+
return false;
});
');
@@ -86,7 +87,7 @@ class LoginBlockModule extends AbstractModule implements ModuleBlockInterface {
<a href="#" id="passwd_click">' . I18N::translate('Forgot password?') . '</a>
</div>';
if (Site::getPreference('USE_REGISTRATION_MODULE')) {
- $content .= '<div><a href="' . WT_LOGIN_URL . '?action=register">' . I18N::translate('Request a new user account') . '</a></div>';
+ $content .= '<div id="register-link"><a href="' . WT_LOGIN_URL . '?action=register">' . I18N::translate('Request a new user account') . '</a></div>';
}
$content .= '</form>'; // close "login-form"