summaryrefslogtreecommitdiffstats
path: root/debian/patches/0003-system-libjs-jquery-ui.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2025-02-26 09:37:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2025-02-26 09:37:18 +0000
commitb1978c99c086c6e28daf2927c9d5fbf539b40f31 (patch)
tree44880de670fc9ee86219d9a66ae4082eb906b51d /debian/patches/0003-system-libjs-jquery-ui.patch
parentAdding upstream version 2024-02-06b+dfsg. (diff)
downloaddokuwiki-debian.tar.xz
dokuwiki-debian.zip
Adding debian version 2024-02-06b+dfsg-3.debian/2024-02-06b+dfsg-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0003-system-libjs-jquery-ui.patch')
-rw-r--r--debian/patches/0003-system-libjs-jquery-ui.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/0003-system-libjs-jquery-ui.patch b/debian/patches/0003-system-libjs-jquery-ui.patch
new file mode 100644
index 0000000..cb48366
--- /dev/null
+++ b/debian/patches/0003-system-libjs-jquery-ui.patch
@@ -0,0 +1,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',