Do you get this working if you empty browser cache completely?
My calendar dosnt popup when i go to date field in cms. If i refresh browser then its ok, and after that it load ok.
Same thing happens with Dataobjectmanager module. First load dosnt seem to load correctly like something were missing, but after refreshing all ok.
My code looks like this.
class MyPage extends Page {
static $db = array (
'MyPageName' => 'Text',
'From' => 'Date',
'To' => 'Date'
}
public function getCMSFields() {
$f = parent::getCMSFields();
// add fields
$datefieldFrom = new DateField('From','From');
$datefieldTo = new DateField('To','To');
$datefieldFrom->setConfig('showcalendar', true);
$datefieldTo->setConfig('showcalendar', true);
$f->addFieldToTab("Root.Content.Main", $datefieldFrom);
$f->addFieldToTab("Root.Content.Main", $datefieldTo);
return $f;
}
}
I been banging my head against wall with this one pretty long....