mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-10 06:14:43 +00:00
Merge pull request #267 from wrwrwr/fix-tabbed-admin-with-two-jqueries
Make tabbed admin work with two jQueries (fixed javascript scoping issue).
This commit is contained in:
commit
6844acdbdb
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@
|
|||
var google, django, gettext;
|
||||
|
||||
(function () {
|
||||
var jQuery = jQuery || $ || django.jQuery;
|
||||
var jQuery = window.jQuery || $ || django.jQuery;
|
||||
|
||||
/* Add a new selector to jQuery that excludes parent items which match a given selector */
|
||||
jQuery.expr[':'].parents = function(a, i, m) {
|
||||
return jQuery(a).parents(m[3]).length < 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue