- LSformElement_ssh_key : Ajout de LStips

This commit is contained in:
Benjamin Renard 2008-11-10 03:30:49 +00:00
parent 9e2872c5c3
commit 7765cd999b
2 changed files with 8 additions and 0 deletions

View file

@ -51,6 +51,13 @@ class LSformElement_ssh_key extends LSformElement {
} }
else { else {
$GLOBALS['LSsession'] -> addJSscript('LSformElement_ssh_key.js'); $GLOBALS['LSsession'] -> addJSscript('LSformElement_ssh_key.js');
$GLOBALS['LSsession'] -> addHelpInfos (
'LSformElement_ssh_key',
array(
'display' => _("Afficher la clef complète.")
)
);
$values_txt = array(); $values_txt = array();
foreach ($this -> values as $value) { foreach ($this -> values as $value) {
if (ereg('^ssh-([a-z]+) (.*)== (.*)$',$value,$regs)) { if (ereg('^ssh-([a-z]+) (.*)== (.*)$',$value,$regs)) {

View file

@ -2,6 +2,7 @@ var LSformElement_ssh_key = new Class({
initialize: function(){ initialize: function(){
$$('span.LSformElement_ssh_key_short_display').each(function(span) { $$('span.LSformElement_ssh_key_short_display').each(function(span) {
span.addEvent('click',this.onShortDisplayClick.bind(this,span)); span.addEvent('click',this.onShortDisplayClick.bind(this,span));
varLSdefault.addHelpInfo(span,'LSformElement_ssh_key','display');
}, this); }, this);
}, },