Fixed #25289 -- Updated admin's jQuery to 2.1.4.
This commit is contained in:
parent
05239180c0
commit
123984ff66
|
@ -1,4 +1,10 @@
|
||||||
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
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
|
|
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.
|
Django admin JavaScript makes use of the `jQuery`_ library.
|
||||||
|
|
||||||
To avoid conflicts with user-supplied scripts or libraries, Django's jQuery
|
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
|
in your own admin JavaScript without including a second copy, you can use the
|
||||||
``django.jQuery`` object on changelist and add/edit views.
|
``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.
|
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
|
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
|
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
|
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
|
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.
|
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
|
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
|
* The jQuery static files in ``contrib.admin`` have been moved into a
|
||||||
``vendor/jquery`` subdirectory.
|
``vendor/jquery`` subdirectory.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue