mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 10:29:07 +01:00
22e6e9ad77
- Création d'un fichier css pour chacun des types - Ajout du type ssh_key
22 lines
687 B
JavaScript
22 lines
687 B
JavaScript
var LSformElement_ssh_key = new Class({
|
|
initialize: function(){
|
|
$$('span.LSformElement_ssh_key_short_display').each(function(span) {
|
|
span.addEvent('click',this.onShortDisplayClick.bind(this,span));
|
|
}, this);
|
|
},
|
|
|
|
onShortDisplayClick: function(span) {
|
|
var p = span.getParent().getFirst('p.LSformElement_ssh_key_value');
|
|
if (typeof(p)) {
|
|
if (p.getStyle('display')=='none') {
|
|
p.setStyle('display','block');
|
|
}
|
|
else {
|
|
p.setStyle('display',' none');
|
|
}
|
|
}
|
|
}
|
|
});
|
|
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
|
varLSformElement_ssh_key = new LSformElement_ssh_key();
|
|
});
|