mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +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;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#LSsession_recoverPassword {
|
a.LSsession_recoverPassword {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -54,7 +54,7 @@ dl.loginform {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#LSsession_recoverPassword {
|
a.LSsession_recoverPassword {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -4,7 +4,7 @@ var LSsession_login = new Class({
|
||||||
if ( ! this.select_ldapserver )
|
if ( ! this.select_ldapserver )
|
||||||
return;
|
return;
|
||||||
this.loading_zone = $('loading_zone');
|
this.loading_zone = $('loading_zone');
|
||||||
this.recoverPassword = $('LSsession_recoverPassword');
|
this.recoverPasswordElements = $$('.LSsession_recoverPassword');
|
||||||
this.select_ldapserver.addEvent('change',this.onLdapServerChanged.bind(this));
|
this.select_ldapserver.addEvent('change',this.onLdapServerChanged.bind(this));
|
||||||
this.onLdapServerChanged();
|
this.onLdapServerChanged();
|
||||||
},
|
},
|
||||||
|
@ -51,10 +51,14 @@ var LSsession_login = new Class({
|
||||||
this.loginformLevelHide();
|
this.loginformLevelHide();
|
||||||
}
|
}
|
||||||
if (data.recoverPassword) {
|
if (data.recoverPassword) {
|
||||||
this.recoverPassword.removeClass('LSsession_recoverPassword_hidden');
|
this.recoverPasswordElements.each(function(el) {
|
||||||
|
el.removeClass('LSsession_recoverPassword_hidden');
|
||||||
|
},this);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.recoverPassword.addClass('LSsession_recoverPassword_hidden');
|
this.recoverPasswordElements.each(function(el) {
|
||||||
|
el.addClass('LSsession_recoverPassword_hidden');
|
||||||
|
},this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<dd><input type='submit' value='{$loginform_label_submit}' /></dd>
|
<dd><input type='submit' value='{$loginform_label_submit}' /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</form>
|
</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>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue