MINOR Disabled 'showcalendar' option on CMSMain->SiteTreeFilterDateField() - it causes the CMS to load jQuery UI javascript just for this (rarely used field). To be re-enabled once we work with jQuery UI on a broader scale.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@107784 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-07-12 06:45:11 +00:00 committed by Sam Minnee
parent 8c43535225
commit 3ef552d539

View File

@ -223,7 +223,12 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
}
public function SiteTreeFilterDateField() {
$dateField = new DateField('SiteTreeFilterDate');
$dateField->setConfig('showcalendar', true);
// TODO Enabling this means we load jQuery UI by default in the CMS,
// which is a pretty big performance hit in 2.4 (where the library isn't used for other parts
// of the interface).
// $dateField->setConfig('showcalendar', true);
return $dateField->Field();
}
public function SiteTreeFilterPageTypeField() {