mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
BUG Popup to apear on a date field.
This commit is contained in:
parent
b572b79b30
commit
9b24ace261
@ -59,7 +59,9 @@ JS
|
||||
|
||||
$default = ($this->getSetting('DefaultToToday')) ? date('d/m/Y') : $this->Default;
|
||||
|
||||
return new DateField( $this->Name, $this->Title, $default);
|
||||
$dateField = new DateField( $this->Name, $this->Title, $default);
|
||||
$dateField->setConfig('showcalendar', true);
|
||||
return $dateField;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -75,4 +77,4 @@ JS
|
||||
'date' => true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user