File: 0001-Remove-version-infromation-from-jquery-ui-filename.patch

package info (click to toggle)
python-django-treebeard 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 796 kB
  • ctags: 1,022
  • sloc: python: 4,868; makefile: 180
file content (43 lines) | stat: -rw-r--r-- 1,986 bytes parent folder | download
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
From e87c351cc909b5888694a4ab42d7533adead99ed Mon Sep 17 00:00:00 2001
From: Michael Fladischer <fladi@debian.org>
Date: Wed, 30 Dec 2015 19:37:26 +0100
Subject: Remove version infromation from jquery-ui filename

 This package uses a symlink to the jquery-ui.min.js file provided by the
 libjs-jquery-ui package. Removing the version information from the filename
 makes it clearer that a system library is used and avoids confusion if the
 version in the filename would diverge from the actual file version maintained
 by the package.
Last-Update: 2015-09-08
Forwarded: not-needed
---
 treebeard/templatetags/admin_tree.py | 2 +-
 treebeard/tests/test_treebeard.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/treebeard/templatetags/admin_tree.py b/treebeard/templatetags/admin_tree.py
index 9794ac6..90cf6e2 100644
--- a/treebeard/templatetags/admin_tree.py
+++ b/treebeard/templatetags/admin_tree.py
@@ -285,7 +285,7 @@ def treebeard_js():
     """
     path = get_static_url()
     js_file = urljoin(path, 'treebeard/treebeard-admin.js')
-    jquery_ui = urljoin(path, 'treebeard/jquery-ui-1.8.5.custom.min.js')
+    jquery_ui = urljoin(path, 'treebeard/jquery-ui.min.js')
 
     # Jquery UI is needed to call disableSelection() on drag and drop so
     # text selections arent marked while dragging a table row
diff --git a/treebeard/tests/test_treebeard.py b/treebeard/tests/test_treebeard.py
index 0817848..fbd6276 100644
--- a/treebeard/tests/test_treebeard.py
+++ b/treebeard/tests/test_treebeard.py
@@ -2341,7 +2341,7 @@ class TestAdminTreeTemplateTags(TestCase):
                     'jQuery = $.noConflict(true);'
                     '})(django.jQuery);</script>'
                     '<script type="text/javascript" '
-                    'src="/treebeard/jquery-ui-1.8.5.custom.min.js"></script>')
+                    'src="/treebeard/jquery-ui.min.js"></script>')
         assert expected == rendered
 
     def test_get_static_url(self):