load minified javascript if debug mode is off; add minified version (generated with "yuicompressor --nomunge") of jstree
This commit is contained in:
parent
45cbe47f81
commit
5e1b9533ee
3 changed files with 9 additions and 2 deletions
|
@ -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 ?>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
1
www/js/jstree-1.0-rc2/jquery.jstree.min.js
vendored
Normal file
1
www/js/jstree-1.0-rc2/jquery.jstree.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue