BUGFIX: DateField javascript fails when it is included in a GroupField

This commit is contained in:
Jeremy Shipman 2012-06-25 20:32:53 +12:00
parent 2c5f4201b7
commit 606d86a926
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -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');
});