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
@ -120,6 +120,14 @@ class DateField extends TextField {
|
|||||||
return $html;
|
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()) {
|
function Field($properties = array()) {
|
||||||
$config = array(
|
$config = array(
|
||||||
'showcalendar' => $this->getConfig('showcalendar'),
|
'showcalendar' => $this->getConfig('showcalendar'),
|
||||||
|
@ -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).ssDatepicker();
|
||||||
$(this).datepicker('show');
|
$(this).datepicker('show');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user