mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Better combination of i18n JS files in CMSMain
This commit is contained in:
parent
6887b88099
commit
6bff69117a
@ -62,16 +62,19 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
|
||||
Requirements::combine_files(
|
||||
'cmsmain.js',
|
||||
array_merge(
|
||||
array(
|
||||
// CMS_DIR . '/javascript/ThumbnailStripField.js',
|
||||
CMS_DIR . '/javascript/CMSMain.js',
|
||||
CMS_DIR . '/javascript/CMSMain.EditForm.js',
|
||||
CMS_DIR . '/javascript/CMSMain.AddForm.js',
|
||||
CMS_DIR . '/javascript/CMSPageHistoryController.js',
|
||||
CMS_DIR . '/javascript/CMSPagesController.Tree.js',
|
||||
CMS_DIR . '/javascript/SilverStripeNavigator.js'
|
||||
),
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang', true, true)
|
||||
)
|
||||
);
|
||||
Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang');
|
||||
|
||||
CMSBatchActionHandler::register('publish', 'CMSBatchAction_Publish');
|
||||
CMSBatchActionHandler::register('unpublish', 'CMSBatchAction_Unpublish');
|
||||
|
Loading…
Reference in New Issue
Block a user