mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSsession_login : ajout de la possibilité d'avoir plusieurs éléments affichés
ou cachés pour LSsession_recoverPassword.
This commit is contained in:
parent
380df2166a
commit
b8227ca48a
4 changed files with 10 additions and 6 deletions
|
@ -58,7 +58,7 @@ dl.loginform {
|
|||
margin-left: 1em;
|
||||
}
|
||||
|
||||
#LSsession_recoverPassword {
|
||||
a.LSsession_recoverPassword {
|
||||
float: right;
|
||||
font-size: 0.8em;
|
||||
text-decoration: none;
|
||||
|
|
|
@ -54,7 +54,7 @@ dl.loginform {
|
|||
margin-left: 1em;
|
||||
}
|
||||
|
||||
#LSsession_recoverPassword {
|
||||
a.LSsession_recoverPassword {
|
||||
float: right;
|
||||
font-size: 0.8em;
|
||||
text-decoration: none;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue