File: use-system-JQueryUI.patch

package info (click to toggle)
roundcube 1.6.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,868 kB
  • sloc: javascript: 195,588; php: 76,818; sql: 3,150; sh: 2,882; pascal: 1,079; makefile: 234; xml: 93; perl: 73; ansic: 48; python: 21
file content (44 lines) | stat: -rw-r--r-- 1,871 bytes parent folder | download | duplicates (3)
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
42
43
44
From: Guilhem Moulin <guilhem@debian.org>
Date: Fri, 7 Jun 2019 20:13:37 +0200
Subject: Use system JQueryUI

We source jquery-ui-accessible-datepicker.min.js after libjs-jquery-ui's
jquery-ui.min.js to avoid concatening these files (see the former's
headers).

Also libjs-jquery-ui's datepicker-* files don't have the ‘jquery.ui.’
prefix.

Forwarded: not-needed
---
 plugins/jqueryui/jqueryui.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/plugins/jqueryui/jqueryui.php b/plugins/jqueryui/jqueryui.php
index 7628539..2f23761 100644
--- a/plugins/jqueryui/jqueryui.php
+++ b/plugins/jqueryui/jqueryui.php
@@ -40,6 +40,7 @@ class jqueryui extends rcube_plugin
 
         // include UI scripts
         $this->include_script("js/jquery-ui.min.js");
+        $this->include_script("js/jquery-ui-accessible-datepicker.min.js");
 
         // include UI stylesheet
         $skin     = $rcmail->config->get('skin');
@@ -65,11 +66,11 @@ class jqueryui extends rcube_plugin
             $lang_s = substr($_SESSION['language'], 0, 2);
 
             foreach ($jquery_ui_i18n as $package) {
-                if (self::asset_exists("js/i18n/$package-$lang_l.js", false)) {
-                    $this->include_script("js/i18n/$package-$lang_l.js");
+                if (self::asset_exists("js/i18n/$package-$lang_l.min.js", false)) {
+                    $this->include_script("js/i18n/$package-$lang_l.min.js");
                 }
-                else if ($lang_s != 'en' && self::asset_exists("js/i18n/$package-$lang_s.js", false)) {
-                    $this->include_script("js/i18n/$package-$lang_s.js");
+                else if ($lang_s != 'en' && self::asset_exists("js/i18n/$package-$lang_s.min.js", false)) {
+                    $this->include_script("js/i18n/$package-$lang_s.min.js");
                 }
             }
         }