summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
authorPierre Spring <pierre.spring@caillou.ch>2010-09-17 15:13:37 +0200
committerPierre Spring <pierre.spring@caillou.ch>2010-09-27 11:52:16 +0200
commit9cefc1d140c6f6b265cfad6847cb8c64d2432253 (patch)
tree03c177947feca9687c289f5fe8cf73b1e3b73593 /lib/exe/js.php
parent07d7dfcf87238d920900ca468d9399d80d8b7247 (diff)
downloadrpg-9cefc1d140c6f6b265cfad6847cb8c64d2432253.tar.gz
rpg-9cefc1d140c6f6b265cfad6847cb8c64d2432253.tar.bz2
loading jQuery and putting it into noConflict mode
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 3756c43b9..c916bf85d 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -34,8 +34,16 @@ function js_out(){
// The generated script depends on some dynamic options
$cache = getCacheName('scripts'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'],'.js');
+ // load jQuery, minified if compression is eanbled.
+ $jquery_file_path = DOKU_INC.'lib/scripts/jquery/jquery';
+ if($conf['compress']) {
+ $jquery_file_path .= '.min';
+ }
+ $jquery_file_path .= '.js';
+
// array of core files
$files = array(
+ $jquery_file_path,
DOKU_INC.'lib/scripts/helpers.js',
DOKU_INC.'lib/scripts/events.js',
DOKU_INC.'lib/scripts/delay.js',