From 20427cd45ba77b79a23b59dda55804f26d9f2645 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 10 Mar 2011 23:54:34 +1300 Subject: [PATCH] MINOR Using 'apple' theme in tree (until we decide on a proper redesign) --- code/LeftAndMain.php | 2 +- javascript/LeftAndMain.Tree.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 518ed2d1..d340bf3f 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -243,7 +243,7 @@ class LeftAndMain extends Controller { Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/scriptaculous/controls.js'); Requirements::javascript(THIRDPARTY_DIR . '/jstree/jquery.jstree.js'); - Requirements::css(THIRDPARTY_DIR . '/jstree/themes/default/style.css'); + Requirements::css(THIRDPARTY_DIR . '/jstree/themes/apple/style.css'); Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.js'); Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.Tree.js'); diff --git a/javascript/LeftAndMain.Tree.js b/javascript/LeftAndMain.Tree.js index debbc5d5..5a557173 100755 --- a/javascript/LeftAndMain.Tree.js +++ b/javascript/LeftAndMain.Tree.js @@ -77,7 +77,11 @@ "drop_target" : false, "drag_target" : false }, - 'plugins': ['html_data', 'ui', 'dnd', 'crrm'] + 'themes': { + 'theme': 'apple' + }, + // 'plugins': ['html_data', 'ui', 'dnd', 'crrm', 'themeroller'] + 'plugins': ['html_data', 'ui', 'dnd', 'crrm', 'themes'] }) .bind('before.jstree', function(e, data) { if(data.func == 'start_drag') {