Browse files

API CHANGE Using FieldHolder() instead of Field() for subfields in Da…

…tetimeField->FieldHolder(), in order to get configuraton settings for javascript DateField (from r107439)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112598 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent d67c43a commit 52bd0cc4bb5792866dbc3a3f011251745704585a @chillu chillu committed Oct 15, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 forms/DatetimeField.php
View
4 forms/DatetimeField.php
@@ -47,7 +47,9 @@ function setForm($form) {
}
function Field() {
- return $this->dateField->Field() . $this->timeField->Field();
+ Requirements::css(SAPPHIRE_DIR . '/css/DatetimeField.css');
+
+ return $this->dateField->FieldHolder() . $this->timeField->FieldHolder();
}
/**

0 comments on commit 52bd0cc

Please sign in to comment.