mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
- LSformElement_url : Ajout de LStips sur les boutons.
This commit is contained in:
parent
4365e4cb83
commit
6b305ea742
2 changed files with 15 additions and 6 deletions
|
@ -43,6 +43,17 @@ class LSformElement_url extends LSformElement_text {
|
|||
|
||||
var $fieldTemplate = 'LSformElement_uri_field.tpl';
|
||||
|
||||
function getDisplay() {
|
||||
$GLOBALS['LSsession'] -> addHelpInfos (
|
||||
'LSformElement_url',
|
||||
array(
|
||||
'go' => _("Afficher ce site."),
|
||||
'fav' => _("Ajouter ce site dans mes favoris.")
|
||||
)
|
||||
);
|
||||
return parent :: getDisplay($return);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -21,23 +21,21 @@ var LSformElement_url = new Class({
|
|||
addBtnAfter: function(el) {
|
||||
var btn_go = new Element('img');
|
||||
btn_go.setProperties({
|
||||
src: varLSdefault.imagePath('url_go.png'),
|
||||
alt: 'Suivre le lien',
|
||||
title: 'Suivre le lien'
|
||||
src: varLSdefault.imagePath('url_go.png')
|
||||
});
|
||||
btn_go.addClass('btn');
|
||||
btn_go.injectAfter(el);
|
||||
btn_go.addEvent('click',this.onGoBtnClick.bind(this,btn_go));
|
||||
varLSdefault.addHelpInfo(btn_go,'LSformElement_url','go');
|
||||
|
||||
var btn_fav = new Element('img');
|
||||
btn_fav.setProperties({
|
||||
src: varLSdefault.imagePath('url_add.png'),
|
||||
alt: 'Ajouter aux favoris',
|
||||
title: 'Ajouter aux favoris'
|
||||
src: varLSdefault.imagePath('url_add.png')
|
||||
});
|
||||
btn_fav.addClass('btn');
|
||||
btn_fav.injectAfter(btn_go);
|
||||
btn_fav.addEvent('click',this.onAddFavoriteBtnClick.bind(this,btn_fav));
|
||||
varLSdefault.addHelpInfo(btn_fav,'LSformElement_url','fav');
|
||||
},
|
||||
|
||||
reinitialize: function(el) {
|
||||
|
|
Loading…
Reference in a new issue