load minified javascript if debug mode is off; add minified version (generated with "yuicompressor --nomunge") of jstree

This commit is contained in:
Christian Weiske 2010-10-13 18:58:46 +02:00
parent 45cbe47f81
commit 5e1b9533ee
3 changed files with 9 additions and 2 deletions

View file

@ -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 ?>

View file

@ -45,6 +45,7 @@ if (!isset($GLOBALS['root'])) {
} else {
define('ROOT', $GLOBALS['root']);
}
define('ROOT_JS', ROOT . 'js/jstree-1.0-rc2/');
// Error codes
define('GENERAL_MESSAGE', 200);

File diff suppressed because one or more lines are too long