[Python-modules-commits] [python-django-treebeard] 03/11: Remove version infromation from jquery-ui filename

Michael Fladischer fladi at moszumanska.debian.org
Wed Jul 12 20:44:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch master
in repository python-django-treebeard.

commit f7adcb2b13298c66cdfcab581b306bda1eba4946
Author: Michael Fladischer <fladi at debian.org>
Date:   Wed Dec 30 19:37:26 2015 +0100

    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):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-treebeard.git



More information about the Python-modules-commits mailing list