From 80fe9c886445b3e18335c891d6570e7b9500c7f6 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 28 Feb 2012 15:05:30 +1300 Subject: [PATCH] MINOR: SSF-106 Include cms gridfield javascript hooks --- code/controllers/AssetAdmin.php | 1 + code/controllers/CMSMain.php | 1 + 2 files changed, 2 insertions(+) diff --git a/code/controllers/AssetAdmin.php b/code/controllers/AssetAdmin.php index cb4a845e..895639b2 100644 --- a/code/controllers/AssetAdmin.php +++ b/code/controllers/AssetAdmin.php @@ -57,6 +57,7 @@ class AssetAdmin extends LeftAndMain { if(!file_exists(ASSETS_PATH)) Filesystem::makeFolder(ASSETS_PATH); Requirements::javascript(CMS_DIR . "/javascript/AssetAdmin.js"); + Requirements::javascript(CMS_DIR . '/javascript/CMSMain.GridField.js'); Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang', false, true); Requirements::css(CMS_DIR . "/css/screen.css"); diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 1384c32c..e87ebdfa 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -67,6 +67,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr CMS_DIR . '/javascript/CMSMain.js', CMS_DIR . '/javascript/CMSMain.EditForm.js', CMS_DIR . '/javascript/CMSMain.AddForm.js', + CMS_DIR . '/javascript/CMSMain.GridField.js', CMS_DIR . '/javascript/CMSPageHistoryController.js', // CMS_DIR . '/javascript/CMSPagesController.Tree.js', CMS_DIR . '/javascript/SilverStripeNavigator.js'