mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: DateField javascript fails when it is included in a GroupField
This commit is contained in:
parent
2c5f4201b7
commit
606d86a926
@ -119,6 +119,14 @@ class DateField extends TextField {
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
function SmallFieldHolder($properties = array()){
|
||||
$d = DateField_View_JQuery::create($this);
|
||||
$d->onBeforeRender();
|
||||
$html = parent::SmallFieldHolder($properties);
|
||||
$html = $d->onAfterRender($html);
|
||||
return $html;
|
||||
}
|
||||
|
||||
function Field($properties = array()) {
|
||||
$config = array(
|
||||
|
@ -26,7 +26,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('.field.date input.text').live('click', function() {
|
||||
$('.field.date input.text,.fieldholder-small input.text.date').live('click', function() {
|
||||
$(this).ssDatepicker();
|
||||
$(this).datepicker('show');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user