aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-10-13 18:58:46 +0200
committerChristian Weiske <cweiske@cweiske.de>2010-10-13 18:58:46 +0200
commit5e1b9533eed98da03a06cd06bb13c8143b7fc91e (patch)
tree8e8099f9d62db26738b4c5b76ae385fbb5973b47 /data/templates
parent45cbe47f816281f77e8919126e6d47ad9d5073b2 (diff)
downloadsemanticscuttle-5e1b9533eed98da03a06cd06bb13c8143b7fc91e.tar.gz
semanticscuttle-5e1b9533eed98da03a06cd06bb13c8143b7fc91e.tar.bz2
load minified javascript if debug mode is off; add minified version (generated with "yuicompressor --nomunge") of jstree
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/top.inc.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/data/templates/top.inc.php b/data/templates/top.inc.php
index 428f3d4..bdd4b1a 100644
--- a/data/templates/top.inc.php
+++ b/data/templates/top.inc.php
@@ -19,8 +19,13 @@ if (isset($rsschannels)) {
?>
<?php if (isset($loadjs)) :?>
- <script type="text/javascript" src="<?php echo ROOT ?>js/jstree-1.0-rc2/jquery-1.4.2.js"></script>
- <script type="text/javascript" src="<?php echo ROOT ?>js/jstree-1.0-rc2/jquery.jstree.js"></script>
+<?php if (DEBUG_MODE) : ?>
+ <script type="text/javascript" src="<?php echo ROOT_JS ?>jquery-1.4.2.js"></script>
+ <script type="text/javascript" src="<?php echo ROOT_JS ?>jquery.jstree.js"></script>
+<?php else: ?>
+ <script type="text/javascript" src="<?php echo ROOT_JS ?>jquery-1.4.2.min.js"></script>
+ <script type="text/javascript" src="<?php echo ROOT_JS ?>jquery.jstree.min.js"></script>
+<?php endif ?>
<script type="text/javascript" src="<?php echo ROOT ?>jsScuttle.php"></script>
<?php endif ?>