- LSformElement_select : Ajout de LStip sur le bouton clear.

This commit is contained in:
Benjamin Renard 2008-11-10 03:14:13 +00:00
parent d9ce613daf
commit 525a49481c
2 changed files with 7 additions and 0 deletions

View file

@ -46,6 +46,12 @@ class LSformElement_select extends LSformElement {
$return = $this -> getLabelInfos(); $return = $this -> getLabelInfos();
$params = array(); $params = array();
if (!$this -> isFreeze()) { if (!$this -> isFreeze()) {
$GLOBALS['LSsession'] -> addHelpInfos (
'LSformElement_select',
array(
'clear' => _("Effacer la sélection.")
)
);
$GLOBALS['LSsession'] -> addJSscript('LSformElement_select.js'); $GLOBALS['LSsession'] -> addJSscript('LSformElement_select.js');
} }
$params['possible_values'] = $this -> params['text_possible_values']; $params['possible_values'] = $this -> params['text_possible_values'];

View file

@ -15,6 +15,7 @@ var LSformElement_select = new Class({
btn.setStyle('vertical-align','top'); btn.setStyle('vertical-align','top');
btn.addEvent('click',this.onClearBtnClick.bind(this,el)); btn.addEvent('click',this.onClearBtnClick.bind(this,el));
btn.injectAfter(el); btn.injectAfter(el);
varLSdefault.addHelpInfo(btn,'LSformElement_select','clear');
}, this); }, this);
}, },