mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-04-21 05:30:59 +00:00
A more elegant solution suggested by zlorf.
This commit is contained in:
parent
b06e49921b
commit
6026a91741
1 changed files with 1 additions and 2 deletions
|
|
@ -3,8 +3,7 @@
|
|||
var google, django, gettext;
|
||||
|
||||
(function () {
|
||||
var t = jQuery || $ || django.jQuery;
|
||||
jQuery = t; // Note: This is not equivalent to "var jQuery = 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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue