- LSsession_login : ajout de la possibilité d'avoir plusieurs éléments affichés

ou cachés pour LSsession_recoverPassword.
This commit is contained in:
Benjamin Renard 2008-10-14 17:16:52 +00:00
parent 380df2166a
commit b8227ca48a
4 changed files with 10 additions and 6 deletions

View file

@ -58,7 +58,7 @@ dl.loginform {
margin-left: 1em;
}
#LSsession_recoverPassword {
a.LSsession_recoverPassword {
float: right;
font-size: 0.8em;
text-decoration: none;

View file

@ -54,7 +54,7 @@ dl.loginform {
margin-left: 1em;
}
#LSsession_recoverPassword {
a.LSsession_recoverPassword {
float: right;
font-size: 0.8em;
text-decoration: none;

View file

@ -4,7 +4,7 @@ var LSsession_login = new Class({
if ( ! this.select_ldapserver )
return;
this.loading_zone = $('loading_zone');
this.recoverPassword = $('LSsession_recoverPassword');
this.recoverPasswordElements = $$('.LSsession_recoverPassword');
this.select_ldapserver.addEvent('change',this.onLdapServerChanged.bind(this));
this.onLdapServerChanged();
},
@ -51,10 +51,14 @@ var LSsession_login = new Class({
this.loginformLevelHide();
}
if (data.recoverPassword) {
this.recoverPassword.removeClass('LSsession_recoverPassword_hidden');
this.recoverPasswordElements.each(function(el) {
el.removeClass('LSsession_recoverPassword_hidden');
},this);
}
else {
this.recoverPassword.addClass('LSsession_recoverPassword_hidden');
this.recoverPasswordElements.each(function(el) {
el.addClass('LSsession_recoverPassword_hidden');
},this);
}
}
else {

View file

@ -35,7 +35,7 @@
<dd><input type='submit' value='{$loginform_label_submit}' /></dd>
</dl>
</form>
<a href='index.php?LSsession_recoverPassword' id='LSsession_recoverPassword'>{$loginform_label_recoverPassword}</a>
<a href='index.php?LSsession_recoverPassword' class='LSsession_recoverPassword'>{$loginform_label_recoverPassword}</a>
</div>
</body>
</html>