From 4145bb5e211da76be6b6c274605deb49e11c7a28 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 10 Nov 2008 02:32:18 +0000 Subject: [PATCH] - LSformElement_date : Ajout d'un LStip sur le bouton calendar. --- trunk/includes/class/class.LSformElement_date.php | 8 ++++++++ trunk/includes/js/LSformElement_date_field.js | 1 + 2 files changed, 9 insertions(+) diff --git a/trunk/includes/class/class.LSformElement_date.php b/trunk/includes/class/class.LSformElement_date.php index 3594643d..5dfc8d73 100644 --- a/trunk/includes/class/class.LSformElement_date.php +++ b/trunk/includes/class/class.LSformElement_date.php @@ -134,6 +134,14 @@ class LSformElement_date extends LSformElement { $return = $this -> getLabelInfos(); // value if (!$this -> isFreeze()) { + // Help Infos + $GLOBALS['LSsession'] -> addHelpInfos( + 'LSformElement_date', + array( + 'calendar' => _('Sélectionner dans un calendrier.') + ) + ); + $params = array( 'format' => $this -> php2js_format($this -> getFormat()), 'firstDayOfWeek' => $this -> getFirstDayOfWeek() diff --git a/trunk/includes/js/LSformElement_date_field.js b/trunk/includes/js/LSformElement_date_field.js index 9bbb87e0..a0c3f6d4 100644 --- a/trunk/includes/js/LSformElement_date_field.js +++ b/trunk/includes/js/LSformElement_date_field.js @@ -7,6 +7,7 @@ var LSformElement_date_field = new Class({ this.calendarBtn.addClass('btn'); this.calendarBtn.addEvent('click',this.onCalendarBtnClick.bind(this)); this.calendarBtn.injectAfter(this.input); + varLSdefault.addHelpInfo(this.calendarBtn,'LSformElement_date','calendar'); // Récupération des paramètres à partir de l'attribut 'rem' du bouton this.params = varLSdefault.LSjsConfig[this.name];