Rename trunk directory to public_html
[ldapsaisie.git] / public_html / includes / js / LSformElement_ssh_key.js
1 var LSformElement_ssh_key = new Class({
2     initialize: function(){
3       $$('span.LSformElement_ssh_key_short_display').each(function(span) {
4         span.addEvent('click',this.onShortDisplayClick.bind(this,span));
5         varLSdefault.addHelpInfo(span,'LSformElement_ssh_key','display');
6       }, this);
7     },
8     
9     onShortDisplayClick: function(span) {
10       var p = span.getParent().getFirst('p.LSformElement_ssh_key_value');
11       if (typeof(p)) {
12         if (p.getStyle('display')=='none') {
13           p.setStyle('display','block');
14         }
15         else {
16           p.setStyle('display',' none');
17         }
18       }
19     }
20 });
21 window.addEvent(window.ie ? 'load' : 'domready', function() {
22   varLSformElement_ssh_key = new LSformElement_ssh_key();
23 });