mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSformElement_text : Ajout d'un LStip pour le bouton generate.
This commit is contained in:
parent
ea23603506
commit
954a3a5272
2 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,12 @@ class LSformElement_text extends LSformElement {
|
|||
if (isset($this -> params['html_options'])) {
|
||||
$GLOBALS['LSsession'] -> addJSconfigParam($this -> name,$this -> params['html_options']);
|
||||
}
|
||||
$GLOBALS['LSsession'] -> addHelpInfos(
|
||||
'LSformElement_text',
|
||||
array(
|
||||
'generate' => _('Générer la valeur')
|
||||
)
|
||||
);
|
||||
$GLOBALS['LSsession'] -> addJSscript('LSformElement_text_field.js');
|
||||
$GLOBALS['LSsession'] -> addJSscript('LSformElement_text.js');
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ var LSformElement_text_field = new Class({
|
|||
this.generateBtn.src=varLSdefault.imagePath('generate.png');
|
||||
this.generateBtn.addEvent('click',this.refreshValue.bind(this,true));
|
||||
this.generateBtn.injectAfter(this.input);
|
||||
varLSdefault.addHelpInfo(this.generateBtn,'LSformElement_text','generate');
|
||||
|
||||
// Auto
|
||||
var force=0;
|
||||
|
|
Loading…
Reference in a new issue