mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Removed individual Requirements calls in CMSMain->init() in favour of Requirements::combine_files(), to avoid duplication and hard to debug behaviour differences due to changed file inclusion orders between non-live and live systems
This commit is contained in:
parent
9016204dec
commit
51a81bb258
@ -57,21 +57,13 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
}
|
||||
|
||||
parent::init();
|
||||
|
||||
Requirements::javascript(CMS_DIR . '/javascript/CMSMain.js');
|
||||
Requirements::javascript(CMS_DIR . '/javascript/CMSMain.EditForm.js');
|
||||
Requirements::javascript(CMS_DIR . '/javascript/CMSMain.AddForm.js');
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang');
|
||||
|
||||
Requirements::css(CMS_DIR . '/css/CMSMain.css');
|
||||
|
||||
// navigator
|
||||
// Requirements::css(CMS_DIR . '/css/SilverStripeNavigator.css');
|
||||
Requirements::javascript(CMS_DIR . '/javascript/SilverStripeNavigator.js');
|
||||
|
||||
Requirements::combine_files(
|
||||
'cmsmain.js',
|
||||
array(
|
||||
CMS_DIR . '/javascript/ThumbnailStripField.js',
|
||||
CMS_DIR . '/javascript/CMSMain.js',
|
||||
CMS_DIR . '/javascript/CMSMain.EditForm.js',
|
||||
CMS_DIR . '/javascript/CMSMain.AddForm.js',
|
||||
@ -79,6 +71,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
CMS_DIR . '/javascript/SilverStripeNavigator.js'
|
||||
)
|
||||
);
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang');
|
||||
|
||||
HtmlEditorField::include_js();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user