mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
8c43535225
commit
3ef552d539
@ -223,7 +223,12 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
}
|
}
|
||||||
public function SiteTreeFilterDateField() {
|
public function SiteTreeFilterDateField() {
|
||||||
$dateField = new DateField('SiteTreeFilterDate');
|
$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();
|
return $dateField->Field();
|
||||||
}
|
}
|
||||||
public function SiteTreeFilterPageTypeField() {
|
public function SiteTreeFilterPageTypeField() {
|
||||||
|
Loading…
Reference in New Issue
Block a user