MINOR Better combination of i18n JS files in CMSMain

This commit is contained in:
Ingo Schommer 2012-01-06 12:01:51 +01:00
parent 6887b88099
commit 6bff69117a

View File

@ -62,17 +62,20 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
Requirements::combine_files( Requirements::combine_files(
'cmsmain.js', 'cmsmain.js',
array( array_merge(
// CMS_DIR . '/javascript/ThumbnailStripField.js', array(
CMS_DIR . '/javascript/CMSMain.js', // CMS_DIR . '/javascript/ThumbnailStripField.js',
CMS_DIR . '/javascript/CMSMain.EditForm.js', CMS_DIR . '/javascript/CMSMain.js',
CMS_DIR . '/javascript/CMSMain.AddForm.js', CMS_DIR . '/javascript/CMSMain.EditForm.js',
CMS_DIR . '/javascript/CMSPageHistoryController.js', CMS_DIR . '/javascript/CMSMain.AddForm.js',
CMS_DIR . '/javascript/SilverStripeNavigator.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('publish', 'CMSBatchAction_Publish');
CMSBatchActionHandler::register('unpublish', 'CMSBatchAction_Unpublish'); CMSBatchActionHandler::register('unpublish', 'CMSBatchAction_Unpublish');
CMSBatchActionHandler::register('delete', 'CMSBatchAction_Delete'); CMSBatchActionHandler::register('delete', 'CMSBatchAction_Delete');