Package: python-django-treebeard / 4.3.1+dfsg-1

0001-Remove-version-infromation-from-jquery-ui-filename.patch Patch series | 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
From: Michael Fladischer <fladi@debian.org>
Date: Wed, 30 Dec 2015 19:37:26 +0100
Subject: Remove version information 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 89c0754..93b37ac 100644
--- a/treebeard/templatetags/admin_tree.py
+++ b/treebeard/templatetags/admin_tree.py
@@ -286,7 +286,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 9756db8..9f992a8 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):