- LSformElement_url : Ajout de LStips sur les boutons.

This commit is contained in:
Benjamin Renard 2008-11-10 03:40:27 +00:00
parent 4365e4cb83
commit 6b305ea742
2 changed files with 15 additions and 6 deletions

View file

@ -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);
}
}
?>

View file

@ -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) {