1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
Author: Tanguy Ortolo <tanguy+debian@ortolo.eu>
Description: Use packaged version of jQuery instead of an embedded one.
diff -Naurp dokuwiki.orig/lib/exe/css.php dokuwiki/lib/exe/css.php
--- dokuwiki.orig/lib/exe/css.php
+++ dokuwiki/lib/exe/css.php
@@ -78,8 +78,8 @@ function css_out()
// load jQuery-UI theme
if ($mediatype == 'screen') {
- $files[DOKU_INC . 'lib/scripts/jquery/jquery-ui-theme/smoothness.css'] =
- DOKU_BASE . 'lib/scripts/jquery/jquery-ui-theme/';
+ $files['/usr/share/javascript/jquery-ui/themes/base/jquery-ui.min.css'] =
+ '/usr/share/javascript/jquery-ui/themes/base/';
}
// load plugin styles
$files = array_merge($files, css_pluginstyles($mediatype));
diff -Naurp dokuwiki.orig/lib/exe/jquery.php dokuwiki/lib/exe/jquery.php
--- dokuwiki.orig/lib/exe/jquery.php
+++ dokuwiki/lib/exe/jquery.php
@@ -25,7 +25,7 @@ function jquery_out()
$cache = new Cache('jquery', '.js');
$files = [
'/usr/share/javascript/jquery/jquery.min.js',
- DOKU_INC . 'lib/scripts/jquery/jquery-ui.min.js'
+ '/usr/share/javascript/jquery-ui/jquery-ui.min.js',
];
$cache_files = $files;
$cache_files[] = __FILE__;
diff -Naurp dokuwiki.orig/lib/exe/js.php dokuwiki/lib/exe/js.php
--- dokuwiki.orig/lib/exe/js.php
+++ dokuwiki/lib/exe/js.php
@@ -47,7 +47,7 @@ function js_out()
// array of core files
$files = [
'/usr/share/javascript/jquery-cookie/jquery.cookie.js',
- DOKU_INC . 'inc/lang/' . $conf['lang'] . '/jquery.ui.datepicker.js',
+ '/usr/share/javascript/jquery-ui/ui/i18n/datepicker-'.$conf['lang'].'.js',
DOKU_INC . "lib/scripts/fileuploader.js",
DOKU_INC . "lib/scripts/fileuploaderextended.js",
DOKU_INC . 'lib/scripts/helpers.js',
|