summaryrefslogtreecommitdiff
path: root/modules_v3/login_block/module.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules_v3/login_block/module.php')
-rw-r--r--modules_v3/login_block/module.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/modules_v3/login_block/module.php b/modules_v3/login_block/module.php
index 3facf47358..bcb523a325 100644
--- a/modules_v3/login_block/module.php
+++ b/modules_v3/login_block/module.php
@@ -38,14 +38,15 @@ class login_block_WT_Module extends WT_Module implements WT_Module_Block {
$id=$this->getName().$block_id;
$class=$this->getName().'_block';
$controller->addInlineJavascript('
- jQuery("#new_passwd").hide();
- jQuery("#passwd_click").click(function() {
- jQuery("#new_passwd").slideToggle(100, function() {
- jQuery("#new_passwd_username").focus();
- });
- return false;
+ jQuery("#new_passwd").hide();
+ jQuery("#passwd_click").click(function() {
+ jQuery("#new_passwd").slideToggle(100, function() {
+ jQuery("#new_passwd_username").focus();
});
- ');
+ return false;
+ });
+ ');
+
if (WT_USER_ID) {
$title = WT_I18N::translate('Logout');
$content = '<div class="center"><form method="post" action="logout.php" name="logoutform" onsubmit="return true;">';