summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-01-15 15:47:31 -0500
committerTim Graham <timograham@gmail.com>2013-01-15 20:00:05 -0500
commitd406afe12edcedbaf745225713ebf3e36fa776fc (patch)
treeb0a87f2d8537fafc787b6de14c5cecbdae1ff9e1
parentb4b00349179208c5c7ec6a7e1715663afc40cb1a (diff)
Fixed #19597 - Added some notes on jQuery in admin.
Thanks Daniele Procida.
-rw-r--r--docs/ref/contrib/admin/index.txt19
1 files changed, 11 insertions, 8 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 1dbde2a98c..b273255c71 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1383,15 +1383,18 @@ definitions on forms <form-media-paths>`.
jQuery
~~~~~~
-Django admin Javascript makes use of the `jQuery`_ library. To avoid
-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.
+Django admin Javascript makes use of the `jQuery`_ library.
-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.
+To avoid conflicts with user-supplied scripts or libraries, Django's jQuery
+(version 1.4.2) 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.
+
+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 specifc need. For example, if you require the jQuery library to be in the
+global namespace (for example when using third-party jQuery plugins) or if you
+need a newer version of jQuery, you will have to include your own copy.
Django provides both uncompressed and 'minified' versions of jQuery, as
``jquery.js`` and ``jquery.min.js`` respectively.