From 4d99dc8d3f3deb7ff112963a6a5dac105bf0f549 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 10 Nov 2008 02:27:38 +0000 Subject: [PATCH] - LSformElement_boolean : Ajout d'un LStip sur le bouton clear. --- trunk/includes/class/class.LSformElement_boolean.php | 7 +++++++ trunk/includes/js/LSformElement_boolean.js | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/trunk/includes/class/class.LSformElement_boolean.php b/trunk/includes/class/class.LSformElement_boolean.php index 59f71c3c..07b4f71a 100644 --- a/trunk/includes/class/class.LSformElement_boolean.php +++ b/trunk/includes/class/class.LSformElement_boolean.php @@ -45,6 +45,13 @@ class LSformElement_boolean extends LSformElement { function getDisplay(){ $return = $this -> getLabelInfos(); if (!$this -> isFreeze()) { + // Help Infos + $GLOBALS['LSsession'] -> addHelpInfos( + 'LSformElement_boolean', + array( + 'clear' => _('Effacer le choix.') + ) + ); $GLOBALS['LSsession'] -> addJSscript('LSformElement_boolean.js'); } $return['html'] = $this -> fetchTemplate( diff --git a/trunk/includes/js/LSformElement_boolean.js b/trunk/includes/js/LSformElement_boolean.js index 7a8825c6..be1d2d40 100644 --- a/trunk/includes/js/LSformElement_boolean.js +++ b/trunk/includes/js/LSformElement_boolean.js @@ -8,13 +8,13 @@ var LSformElement_boolean = new Class({ var btn = new Element('img'); btn.setProperties({ src: varLSdefault.imagePath('clear.png'), - alt: 'Reset', - title: 'Reset' + alt: 'Clear' }); btn.addClass('btn'); btn.setStyle('vertical-align','top'); btn.addEvent('click',this.onClearBtnClick.bind(this,btn)); btn.injectInside(el); + varLSdefault.addHelpInfo(btn,'LSformElement_boolean','clear'); }, this); },