- LSformElement_mail : Ajout d'un bouton LStip pour le bouton mail.

This commit is contained in:
Benjamin Renard 2008-11-10 03:07:28 +00:00
parent 954a3a5272
commit b448d82139
2 changed files with 11 additions and 0 deletions

View file

@ -50,6 +50,16 @@ class LSformElement_mail extends LSformElement_text {
); );
var $fieldTemplate = 'LSformElement_uri_field.tpl'; var $fieldTemplate = 'LSformElement_uri_field.tpl';
function getDisplay() {
$GLOBALS['LSsession'] -> addHelpInfos (
'LSformElement_mail',
array(
'mail' => _("Envoyer un mail depuis l'interface.")
)
);
return parent :: getDisplay($return);
}
} }
?> ?>

View file

@ -29,6 +29,7 @@ var LSformElement_mail = new Class({
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_mail','mail');
}, },
reinitialize: function(el) { reinitialize: function(el) {