2008-09-09 19:10:55 +02:00
|
|
|
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));
|
2008-11-10 04:30:49 +01:00
|
|
|
varLSdefault.addHelpInfo(span,'LSformElement_ssh_key','display');
|
2008-09-09 19:10:55 +02:00
|
|
|
}, this);
|
|
|
|
},
|
2020-04-29 15:54:21 +02:00
|
|
|
|
2008-09-09 19:10:55 +02:00
|
|
|
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();
|
|
|
|
});
|