- LSformElement_date : Ajout d'un LStip sur le bouton calendar.

This commit is contained in:
Benjamin Renard 2008-11-10 02:32:18 +00:00
parent 4d99dc8d3f
commit 4145bb5e21
2 changed files with 9 additions and 0 deletions

View file

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

View file

@ -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];