diff --git a/trunk/includes/class/class.LSformElement_text.php b/trunk/includes/class/class.LSformElement_text.php index 7e6b57fd..e5db8532 100644 --- a/trunk/includes/class/class.LSformElement_text.php +++ b/trunk/includes/class/class.LSformElement_text.php @@ -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'); } diff --git a/trunk/includes/js/LSformElement_text_field.js b/trunk/includes/js/LSformElement_text_field.js index 1540788a..661c4494 100644 --- a/trunk/includes/js/LSformElement_text_field.js +++ b/trunk/includes/js/LSformElement_text_field.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;