mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
- LSformElement_ssh_key : Ajout de LStips
This commit is contained in:
parent
9e2872c5c3
commit
7765cd999b
2 changed files with 8 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue