mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
- LSformElement_xmpp : Ajout de LStips sur les boutons.
This commit is contained in:
parent
6b305ea742
commit
66b1ea7916
2 changed files with 12 additions and 2 deletions
|
@ -42,6 +42,16 @@ class LSformElement_xmpp extends LSformElement_text {
|
||||||
);
|
);
|
||||||
|
|
||||||
var $fieldTemplate = 'LSformElement_uri_field.tpl';
|
var $fieldTemplate = 'LSformElement_uri_field.tpl';
|
||||||
|
|
||||||
|
function getDisplay() {
|
||||||
|
$GLOBALS['LSsession'] -> addHelpInfos (
|
||||||
|
'LSformElement_xmpp',
|
||||||
|
array(
|
||||||
|
'chat' => _("Dialoguer avec cette personne.")
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return parent :: getDisplay($return);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -22,12 +22,12 @@ var LSformElement_xmpp = new Class({
|
||||||
var btn = new Element('img');
|
var btn = new Element('img');
|
||||||
btn.setProperties({
|
btn.setProperties({
|
||||||
src: varLSdefault.imagePath('xmpp.png'),
|
src: varLSdefault.imagePath('xmpp.png'),
|
||||||
alt: 'Chat',
|
alt: 'Chat'
|
||||||
title: 'Chat'
|
|
||||||
});
|
});
|
||||||
btn.addClass('btn');
|
btn.addClass('btn');
|
||||||
btn.injectAfter(el);
|
btn.injectAfter(el);
|
||||||
btn.addEvent('click',this.onBtnClick.bind(this,btn));
|
btn.addEvent('click',this.onBtnClick.bind(this,btn));
|
||||||
|
varLSdefault.addHelpInfo(btn,'LSformElement_xmpp','chat');
|
||||||
},
|
},
|
||||||
|
|
||||||
reinitialize: function(el) {
|
reinitialize: function(el) {
|
||||||
|
|
Loading…
Reference in a new issue