Fixed #25289 -- Updated admin's jQuery to 2.1.4.
This commit is contained in:
parent
05239180c0
commit
123984ff66
|
@ -1,5 +1,11 @@
|
|||
Copyright (c) 2010 John Resig, http://jquery.com/
|
||||
|
||||
Copyright jQuery Foundation and other contributors, https://jquery.org/
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
individuals. For exact contribution history, see the revision history
|
||||
available at https://github.com/jquery/jquery
|
||||
|
||||
====
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
|
@ -7,14 +13,14 @@ without limitation the rights to use, copy, modify, merge, publish,
|
|||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1887,7 +1887,7 @@ jQuery
|
|||
Django admin JavaScript makes use of the `jQuery`_ library.
|
||||
|
||||
To avoid conflicts with user-supplied scripts or libraries, Django's jQuery
|
||||
(version 1.11.2) is namespaced as ``django.jQuery``. If you want to use jQuery
|
||||
(version 2.1.4) 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.
|
||||
|
||||
|
@ -1895,6 +1895,12 @@ in your own admin JavaScript without including a second copy, you can use the
|
|||
|
||||
The embedded jQuery has been upgraded from 1.9.1 to 1.11.2.
|
||||
|
||||
.. versionchanged:: 1.9
|
||||
|
||||
The embedded jQuery has been upgraded from 1.11.2 to 2.1.4. This drops
|
||||
support for Internet Explorer 8 and below. You can restore support by
|
||||
:ref:`including your own version of jQuery 1.X <admin-browser-support-19>`.
|
||||
|
||||
The :class:`ModelAdmin` class requires jQuery by default, so there is no need
|
||||
to add jQuery to your ``ModelAdmin``’s list of media resources unless you have
|
||||
a specific need. For example, if you require the jQuery library to be in the
|
||||
|
|
|
@ -912,12 +912,32 @@ resulting in SQL like ``"related_id IN (SELECT id FROM ...)"``.
|
|||
This implicit ``__in`` no longer happens so the "IN" SQL is now "=", and if the
|
||||
subquery returns multiple results, at least some databases will throw an error.
|
||||
|
||||
.. _admin-browser-support-19:
|
||||
|
||||
``contrib.admin`` browser support
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The admin no longer supports Internet Explorer 8 and below, as these browsers
|
||||
have reached end-of-life.
|
||||
|
||||
CSS and images to support Internet Explorer 6 and 7 have been removed. PNG and
|
||||
GIF icons have been replaced with SVG icons, which are not supported by
|
||||
Internet Explorer 8 and earlier.
|
||||
|
||||
The jQuery library embedded in the admin has been upgraded from version 1.11.2
|
||||
to 2.1.4. jQuery 2.x has the same API as jQuery 1.x, but does not support
|
||||
Internet Explorer 6, 7, or 8, allowing for better performance and a smaller
|
||||
file size. If you need to support IE8 and must also use the latest version of
|
||||
Django, you can override the admin's copy of jQuery with your own by creating
|
||||
a Django application with this structure::
|
||||
|
||||
app/static/admin/js/vendor/
|
||||
jquery.js
|
||||
jquery.min.js
|
||||
|
||||
Miscellaneous
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
* CSS and images in ``contrib.admin`` to support Internet Explorer 6 & 7 have
|
||||
been removed as these browsers have reached end-of-life.
|
||||
|
||||
* The jQuery static files in ``contrib.admin`` have been moved into a
|
||||
``vendor/jquery`` subdirectory.
|
||||
|
||||
|
|
Loading…
Reference in New Issue