mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #16776 -- Fixed a regression introduced in r16415 which caused Django's embedded jQuery to overwrite any pre-existing values of window.jQuery
in the global namespace. Many thanks to Rob Hudson, Jannis Leidel and "anonymous" for the help resolving this issue.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3b22c68343
commit
4da7c772ad
2 changed files with 14 additions and 6 deletions
|
@ -1289,10 +1289,14 @@ The :doc:`staticfiles app </ref/contrib/staticfiles>` prepends
|
|||
definitions on forms <form-media-paths>`.
|
||||
|
||||
Django admin Javascript makes use of the `jQuery`_ library. To avoid
|
||||
conflict with user scripts, Django's jQuery is namespaced as
|
||||
``django.jQuery``. If you want to use jQuery in your own admin
|
||||
JavaScript without including a second copy, you can use the
|
||||
``django.jQuery`` object on changelist and add/edit views.
|
||||
conflicts with user-supplied scripts or libraries, Django's jQuery is
|
||||
namespaced as ``django.jQuery``. If you want to use jQuery in your own admin
|
||||
JavaScript without including a second copy, you can use the ``django.jQuery``
|
||||
object on changelist and add/edit views.
|
||||
|
||||
If you require the jQuery library to be in the global namespace, for example
|
||||
when using third-party jQuery plugins, or need a newer version of jQuery, you
|
||||
will have to include your own copy of jQuery.
|
||||
|
||||
.. _jQuery: http://jquery.com
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue