mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSformElement_boolean : Ajout d'un LStip sur le bouton clear.
This commit is contained in:
parent
9046b96b4c
commit
4d99dc8d3f
2 changed files with 9 additions and 2 deletions
|
@ -45,6 +45,13 @@ class LSformElement_boolean extends LSformElement {
|
||||||
function getDisplay(){
|
function getDisplay(){
|
||||||
$return = $this -> getLabelInfos();
|
$return = $this -> getLabelInfos();
|
||||||
if (!$this -> isFreeze()) {
|
if (!$this -> isFreeze()) {
|
||||||
|
// Help Infos
|
||||||
|
$GLOBALS['LSsession'] -> addHelpInfos(
|
||||||
|
'LSformElement_boolean',
|
||||||
|
array(
|
||||||
|
'clear' => _('Effacer le choix.')
|
||||||
|
)
|
||||||
|
);
|
||||||
$GLOBALS['LSsession'] -> addJSscript('LSformElement_boolean.js');
|
$GLOBALS['LSsession'] -> addJSscript('LSformElement_boolean.js');
|
||||||
}
|
}
|
||||||
$return['html'] = $this -> fetchTemplate(
|
$return['html'] = $this -> fetchTemplate(
|
||||||
|
|
|
@ -8,13 +8,13 @@ var LSformElement_boolean = new Class({
|
||||||
var btn = new Element('img');
|
var btn = new Element('img');
|
||||||
btn.setProperties({
|
btn.setProperties({
|
||||||
src: varLSdefault.imagePath('clear.png'),
|
src: varLSdefault.imagePath('clear.png'),
|
||||||
alt: 'Reset',
|
alt: 'Clear'
|
||||||
title: 'Reset'
|
|
||||||
});
|
});
|
||||||
btn.addClass('btn');
|
btn.addClass('btn');
|
||||||
btn.setStyle('vertical-align','top');
|
btn.setStyle('vertical-align','top');
|
||||||
btn.addEvent('click',this.onClearBtnClick.bind(this,btn));
|
btn.addEvent('click',this.onClearBtnClick.bind(this,btn));
|
||||||
btn.injectInside(el);
|
btn.injectInside(el);
|
||||||
|
varLSdefault.addHelpInfo(btn,'LSformElement_boolean','clear');
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue