From 954a3a52723c5c758b01a331fa2047420783d696 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 10 Nov 2008 03:06:54 +0000 Subject: [PATCH] - LSformElement_text : Ajout d'un LStip pour le bouton generate. --- trunk/includes/class/class.LSformElement_text.php | 6 ++++++ trunk/includes/js/LSformElement_text_field.js | 1 + 2 files changed, 7 insertions(+) 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;