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:
Jacek Tomaszewski 2014-10-04 19:30:05 +02:00
commit 6844acdbdb

View file

@ -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;