| Age | Commit message (Collapse) | Author |
|
The existing note that is shown to the users when entering a time value
from a different timezone than the server's timezone was not descriptive
enough and led to confusion. This commit updates the note to explicitly
state that the user should enter times in the server's timezone.
|
|
|
|
|
|
|
|
FilteredSelectMultiple.
This patch adds support for <optgroup>s in FilteredSelectMultiple widgets.
When a popup returns a new object, if the source field contains optgroup
choices, the optgroup is now also included in the response data.
Additionally, this adds error handling for invalid source_model parameters
to prevent crashes and display user-friendly error messages instead.
Co-authored-by: Michael McLarnon <mmclar@gmail.com>
|
|
Thanks Eliana Rosselli and the Accessibility Team for the recommendation.
|
|
|
|
|
|
in the admin.
This work amends the code from f2f6046c0f92ff1faed057da0711ac478eef439c
where multiple geometry widgets rendered `<script>` elements in the
admin with the same HTML `id`, resulting in invalid HTML and fragile
JavaScript selectors. Refs #25706.
This change uses the widget's textarea ID to generate a unique `id` for
each JSON options `<script>`, ensuring valid and robust markup.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
|
|
Refactored GIS-related JavaScript initialization to eliminate inline
scripts from templates. Added support for specifying a base layer using
the new `base_layer_name` attribute on `BaseGeometryWidget`, allowing
custom map tile providers via user-defined JavaScript.
As a result, the `gis/openlayers-osm.html` template was removed.
Thanks Sarah Boyce for reviews.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
|
|
submission.
In the admin's filter_horizontal widget, optional action buttons like
"Choose all", "Remove all", etc. were changed from `<a>` to `<button>`
elements in #34619, but without specifying `type="button"`. As a result,
when pressing Enter while focused on a form input, these buttons could
be triggered and intercept form submission.
Explicitly set `type="button"` on these control buttons to prevent them
from acting as submit buttons.
Thanks Antoliny Lee for the quick triage and review.
Regression in 857b1048d53ebf5fc5581c110e85c212b81ca83a.
|
|
In the admin, when selecting related objects via the helpers defined in
`RelatedObjectLookups.js`, the `dismissRelatedLookupPopup` function was
attempting to access `window.relatedWindows`, which does not exist in
real execution, causing related lookup popups to remain open.
This change ensures that this code correctly accesses the module-local
`relatedWindows` by explicitly assigning it to `window.relatedWindows`.
Regression in 91bebf1adb43561b54bac18e76224759dc70acb3.
Thanks Matthias Kestenholz for the report, the fix ideas, and testing.
Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>
|
|
|
|
|
|
|
|
and help text.
|
|
|
|
|
|
pages on small screens.
Regression in 1699f8b52ac15f687cc39088401c2641022c71cd.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>
|
|
This enables the admin to display the day as locale's abbreviated/full
name if %a/%A is used in the date format.
|
|
This adds "aria-label".
|
|
|
|
|
|
|
|
|
|
|
|
Thanks Tom Carrick for the review.
|
|
|
|
This enables the admin to display the month as locale's abbreviated
name if %b is used in the date format.
|
|
|
|
|
|
|
|
Co-Authored-By: Andy Chosak <andy@chosak.org>
|
|
|
|
The eslint configuration and the admin script compress.py have been
updated for ES6.
The unused fallback of globals.django in jquery.init.js was removed. It
is always included before jsi18n-mocks.test.js and it always sets the
global value.
|
|
boolean syntax.
|
|
admin's JavaScript.
Since 8b30360322d4de6687e17ab267a856db4e3c78a6, the admin documentation
is explicit that only modern evergreen browsers are supported. This
allows removing several long standing workarounds for IE and Opera older
versions.
Since 2013, Opera is based on the Chromium blink engine.
|
|
|
|
Fixes error "Assertion occurred after test had finished" with newer
versions of QUnit.
|
|
|
|
in admin.
|
|
two-digit years.
Two-digit years in the range of [00, 68] are in the current century,
while [69,99] are in the previous century, according to the Open Group
Specification.
|
|
error.
|
|
|
|
|
|
Unused since its introduction in dd5320d1d56ca7603747dd68871e72eee99d9e67.
|
|
Unused since d2180a6bf3a72bad67bf4897b0ce2d94a6214fc4.
|
|
Unused since fa0653cd1d791a8bce835e8992cbeab6fd70d0e7.
|
|
|
|
Thanks Tim Graham for the review.
|