From 61d880ce68fbb7e9e491f5feddcdfb3963346e1e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 16 Feb 2010 03:01:15 +0000 Subject: [PATCH] MINOR Added Requirements for SilverStripeNavigator (see r99080) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99097 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/ContentController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/control/ContentController.php b/core/control/ContentController.php index cda800032..4f7a86734 100755 --- a/core/control/ContentController.php +++ b/core/control/ContentController.php @@ -298,6 +298,12 @@ class ContentController extends Controller { if(Director::isDev() || Permission::check('CMS_ACCESS_CMSMain') || Permission::check('VIEW_DRAFT_CONTENT')) { if($this->dataRecord) { + Requirements::css(SAPPHIRE_DIR . '/css/SilverStripeNavigator.css'); + Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js'); + Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery/jquery.js'); + Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-livequery/jquery.livequery.js'); + Requirements::javascript(SAPPHIRE_DIR . '/javascript/SilverStripeNavigator.js'); + $return = $nav = SilverStripeNavigator::get_for_record($this->dataRecord); $items = $return['items']; $message = $return['message'];