mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSformElement_textarea : Ajout d'un LStip sur le bouton clear.
This commit is contained in:
parent
7765cd999b
commit
4365e4cb83
2 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,12 @@ class LSformElement_textarea extends LSformElement {
|
|||
function getDisplay(){
|
||||
$return = $this -> getLabelInfos();
|
||||
if (!$this -> isFreeze()) {
|
||||
$GLOBALS['LSsession'] -> addHelpInfos(
|
||||
'LSformElement_textarea',
|
||||
array(
|
||||
'clear' => _('Effacer')
|
||||
)
|
||||
);
|
||||
$GLOBALS['LSsession'] -> addJSscript('LSformElement_textarea.js');
|
||||
}
|
||||
$return['html'] = $this -> fetchTemplate();
|
||||
|
|
|
@ -16,6 +16,7 @@ var LSformElement_textarea = new Class({
|
|||
btn.src = varLSdefault.imagePath('clear.png');
|
||||
btn.addEvent('click',this.onClearBtnClick.bind(this,btn));
|
||||
btn.injectAfter(textarea);
|
||||
varLSdefault.addHelpInfo(btn,'LSformElement_textarea','clear');
|
||||
}, this);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue