From e703b93a656b78b9b444bb3a9980e305ed002a70 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 11 Dec 2019 00:49:54 -0800 Subject: Fixed #31080 -- Removed redundant type="text/javascript" attribute from - + + {% endblock %} .. code-block:: javascript @@ -66,7 +66,7 @@ listen to the event triggered from there. For example: {% block admin_change_form_document_ready %} {{ block.super }} - + {% endblock %} .. code-block:: javascript diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt index ee6d0643fe..94bf447aab 100644 --- a/docs/ref/csrf.txt +++ b/docs/ref/csrf.txt @@ -136,7 +136,7 @@ and read the token from the DOM with JavaScript: .. code-block:: html+django {% csrf_token %} - diff --git a/docs/topics/forms/media.txt b/docs/topics/forms/media.txt index c88679dda6..d12b66fe6e 100644 --- a/docs/topics/forms/media.txt +++ b/docs/topics/forms/media.txt @@ -72,8 +72,8 @@ can be retrieved through this property:: >>> w = CalendarWidget() >>> print(w.media) - - + + Here's a list of all possible ``Media`` options. There are no required options. @@ -147,9 +147,9 @@ example above:: >>> print(w.media) - - - + + + The FancyCalendar widget inherits all the assets from its parent widget. If you don't want ``Media`` to be inherited in this way, add @@ -166,7 +166,7 @@ an ``extend=False`` declaration to the ``Media`` declaration:: >>> w = FancyCalendarWidget() >>> print(w.media) - + If you require even more control over inheritance, define your assets using a :ref:`dynamic property `. Dynamic properties give you @@ -229,16 +229,16 @@ was ``None``:: >>> w = CalendarWidget() >>> print(w.media) - - + + But if :setting:`STATIC_URL` is ``'http://static.example.com/'``:: >>> w = CalendarWidget() >>> print(w.media) - - + + Or if :mod:`~django.contrib.staticfiles` is configured using the :class:`~django.contrib.staticfiles.storage.ManifestStaticFilesStorage`:: @@ -246,8 +246,8 @@ Or if :mod:`~django.contrib.staticfiles` is configured using the >>> w = CalendarWidget() >>> print(w.media) - - + + ``Media`` objects ================= @@ -269,8 +269,8 @@ operator to filter out a medium of interest. For example:: >>> w = CalendarWidget() >>> print(w.media) - - + + >>> print(w.media['css']) @@ -301,9 +301,9 @@ specified by both:: >>> w2 = OtherWidget() >>> print(w1.media + w2.media) - - - + + + .. _form-media-asset-order: @@ -327,10 +327,10 @@ For example:: >>> w1 = CalendarWidget() >>> w2 = TimeWidget() >>> print(w1.media + w2.media) - - - - + + + + Combining ``Media`` objects with assets in a conflicting order results in a ``MediaOrderConflictWarning``. @@ -357,9 +357,9 @@ are part of the form:: >>> f = ContactForm() >>> f.media - - - + + + If you want to associate additional assets with a form -- for example, CSS for form layout -- add a ``Media`` declaration to the form:: @@ -377,6 +377,6 @@ CSS for form layout -- add a ``Media`` declaration to the form:: >>> f.media - - - + + + diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index f9bb27b6b7..7a8be1eb4a 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -1052,7 +1052,7 @@ To use the catalog, pull in the dynamically generated script like this: .. code-block:: html+django - + This uses reverse URL lookup to find the URL of the JavaScript catalog view. When the catalog is loaded, your JavaScript code can use the following methods: -- cgit v1.3