mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 08:23:49 +01:00
- LSformElement_select_object : Ajout de LStips sur les boutons.
This commit is contained in:
parent
525a49481c
commit
36314b34b7
2 changed files with 13 additions and 0 deletions
trunk/includes
|
@ -62,6 +62,15 @@ class LSformElement_select_object extends LSformElement {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$GLOBALS['LSsession'] -> addHelpInfos (
|
||||||
|
'LSformElement_select_object',
|
||||||
|
array(
|
||||||
|
'searchAdd' => _("Ajout rapide"),
|
||||||
|
'add' => _("Afficher le module de recherche avancée et de sélection."),
|
||||||
|
'delete' => _("Supprimer")
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$GLOBALS['LSsession'] -> addJSscript('LSformElement_select_object_field.js');
|
$GLOBALS['LSsession'] -> addJSscript('LSformElement_select_object_field.js');
|
||||||
$GLOBALS['LSsession'] -> addJSscript('LSformElement_select_object.js');
|
$GLOBALS['LSsession'] -> addJSscript('LSformElement_select_object.js');
|
||||||
$GLOBALS['LSsession'] -> addJSscript('LSform.js');
|
$GLOBALS['LSsession'] -> addJSscript('LSform.js');
|
||||||
|
|
|
@ -37,6 +37,7 @@ var LSformElement_select_object_field = new Class({
|
||||||
this.addBtn.set('html',this.params.addBtn);
|
this.addBtn.set('html',this.params.addBtn);
|
||||||
this.addBtn.addEvent('click',this.onAddBtnClick.bindWithEvent(this));
|
this.addBtn.addEvent('click',this.onAddBtnClick.bindWithEvent(this));
|
||||||
this.addBtn.injectInside(this.li);
|
this.addBtn.injectInside(this.li);
|
||||||
|
varLSdefault.addHelpInfo(this.addBtn,'LSformElement_select_object','add');
|
||||||
|
|
||||||
this.li.inject(this.ul,'top');
|
this.li.inject(this.ul,'top');
|
||||||
}
|
}
|
||||||
|
@ -58,6 +59,7 @@ var LSformElement_select_object_field = new Class({
|
||||||
});
|
});
|
||||||
btn.addEvent('click',this.onDeleteBtnClick.bind(this,btn));
|
btn.addEvent('click',this.onDeleteBtnClick.bind(this,btn));
|
||||||
btn.injectAfter(a);
|
btn.injectAfter(a);
|
||||||
|
varLSdefault.addHelpInfo(btn,'LSformElement_select_object','delete');
|
||||||
},
|
},
|
||||||
|
|
||||||
addSingleAddBtn: function(insideEl) {
|
addSingleAddBtn: function(insideEl) {
|
||||||
|
@ -66,6 +68,7 @@ var LSformElement_select_object_field = new Class({
|
||||||
this.addBtn.addClass('btn');
|
this.addBtn.addClass('btn');
|
||||||
this.addBtn.addEvent('click',this.onAddBtnClick.bindWithEvent(this));
|
this.addBtn.addEvent('click',this.onAddBtnClick.bindWithEvent(this));
|
||||||
this.addBtn.injectInside(insideEl);
|
this.addBtn.injectInside(insideEl);
|
||||||
|
varLSdefault.addHelpInfo(this.addBtn,'LSformElement_select_object','add');
|
||||||
},
|
},
|
||||||
|
|
||||||
addSearchAddBtn: function() {
|
addSearchAddBtn: function() {
|
||||||
|
@ -74,6 +77,7 @@ var LSformElement_select_object_field = new Class({
|
||||||
this.searchAddBtn.addClass('btn');
|
this.searchAddBtn.addClass('btn');
|
||||||
this.searchAddBtn.addEvent('click',this.onSearchAddBtnClick.bindWithEvent(this));
|
this.searchAddBtn.addEvent('click',this.onSearchAddBtnClick.bindWithEvent(this));
|
||||||
this.searchAddBtn.injectAfter(this.addBtn);
|
this.searchAddBtn.injectAfter(this.addBtn);
|
||||||
|
varLSdefault.addHelpInfo(this.searchAddBtn,'LSformElement_select_object','searchAdd');
|
||||||
},
|
},
|
||||||
|
|
||||||
onAddBtnClick: function(event) {
|
onAddBtnClick: function(event) {
|
||||||
|
|
Loading…
Reference in a new issue