- LSformElement_text : Ajout d'un LStip pour le bouton generate.

This commit is contained in:
Benjamin Renard 2008-11-10 03:06:54 +00:00
parent ea23603506
commit 954a3a5272
2 changed files with 7 additions and 0 deletions

View file

@ -50,6 +50,12 @@ class LSformElement_text extends LSformElement {
if (isset($this -> params['html_options'])) { if (isset($this -> params['html_options'])) {
$GLOBALS['LSsession'] -> addJSconfigParam($this -> name,$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_field.js');
$GLOBALS['LSsession'] -> addJSscript('LSformElement_text.js'); $GLOBALS['LSsession'] -> addJSscript('LSformElement_text.js');
} }

View file

@ -27,6 +27,7 @@ var LSformElement_text_field = new Class({
this.generateBtn.src=varLSdefault.imagePath('generate.png'); this.generateBtn.src=varLSdefault.imagePath('generate.png');
this.generateBtn.addEvent('click',this.refreshValue.bind(this,true)); this.generateBtn.addEvent('click',this.refreshValue.bind(this,true));
this.generateBtn.injectAfter(this.input); this.generateBtn.injectAfter(this.input);
varLSdefault.addHelpInfo(this.generateBtn,'LSformElement_text','generate');
// Auto // Auto
var force=0; var force=0;