Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Added Requirements for SilverStripeNavigator (see r99080) (from…

… r99097)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102845 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 3dc4486f3b9cac4af8fc084c39ada11653e658b6 1 parent 14fb2a3
@chillu chillu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 core/control/ContentController.php
View
6 core/control/ContentController.php
@@ -298,6 +298,12 @@ public function SilverStripeNavigator() {
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'];
Please sign in to comment.
Something went wrong with that request. Please try again.