mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSformElement_date : Ajout d'un LStip sur le bouton calendar.
This commit is contained in:
parent
4d99dc8d3f
commit
4145bb5e21
2 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,14 @@ class LSformElement_date extends LSformElement {
|
||||||
$return = $this -> getLabelInfos();
|
$return = $this -> getLabelInfos();
|
||||||
// value
|
// value
|
||||||
if (!$this -> isFreeze()) {
|
if (!$this -> isFreeze()) {
|
||||||
|
// Help Infos
|
||||||
|
$GLOBALS['LSsession'] -> addHelpInfos(
|
||||||
|
'LSformElement_date',
|
||||||
|
array(
|
||||||
|
'calendar' => _('Sélectionner dans un calendrier.')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$params = array(
|
$params = array(
|
||||||
'format' => $this -> php2js_format($this -> getFormat()),
|
'format' => $this -> php2js_format($this -> getFormat()),
|
||||||
'firstDayOfWeek' => $this -> getFirstDayOfWeek()
|
'firstDayOfWeek' => $this -> getFirstDayOfWeek()
|
||||||
|
|
|
@ -7,6 +7,7 @@ var LSformElement_date_field = new Class({
|
||||||
this.calendarBtn.addClass('btn');
|
this.calendarBtn.addClass('btn');
|
||||||
this.calendarBtn.addEvent('click',this.onCalendarBtnClick.bind(this));
|
this.calendarBtn.addEvent('click',this.onCalendarBtnClick.bind(this));
|
||||||
this.calendarBtn.injectAfter(this.input);
|
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
|
// Récupération des paramètres à partir de l'attribut 'rem' du bouton
|
||||||
this.params = varLSdefault.LSjsConfig[this.name];
|
this.params = varLSdefault.LSjsConfig[this.name];
|
||||||
|
|
Loading…
Reference in a new issue