> Is there a way to avoid attaching two times the same jquery library in
> admin?
Well, the noConflict(true) is a Feature, deliberately decoupling the
bundled jquery the admin uses from any jquery (and other "$" snaffling
libraries - the "true" stops it eating "jQuery" too) you might choose to
deploy.
http://api.jquery.com/jQuery.noConflict/
If the django admin didn't do that now that it's using jquery I'd be
whining about it and asking that it do so.
In theory you could probably "re-conflict" it, i.e. grab the
django.jQuery and put it back into the global scope as
Query (and maybe $ - jquery-ui uses jQuery) ...but I wouldn't
recommend it, just look at the admin jquery as an implementation detail
and supply your own for your own uses.
You could I suppose point at the same source url twice, then the browser
may cache it even though it runs it twice. But again, I wouldn't bother.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment