summaryrefslogtreecommitdiff
path: root/js_tests
AgeCommit message (Collapse)Author
2 daysFixed #35951 -- Mentioned server timezone in admin DateTime widgets.Vedran Karacic
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.
3 daysFixed #36990 -- Bumped OpenLayers to 10.9.0.VIZZARD-X
12 daysFormatted JavaScript files.Tom Carrick
12 daysRefs #35007 -- Removed eslint disable in a test.Jacob Walls
2026-01-22Fixed #13883 -- Rendered named choice groups with <optgroup> in ↵seanhelvey
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>
2025-11-21Fixed #36256 -- Removed unnecessary titles from admin UI elements.Skyiesac
Thanks Eliana Rosselli and the Accessibility Team for the recommendation.
2025-11-11Fixed #36053 -- Fixed placement of FilteredSelectMultiple widget label.Dani Fornons
2025-08-19Fixed #35892 -- Supported Widget.use_fieldset in admin forms.antoliny0919
2025-08-05Fixed #36537 -- Ensured unique HTML IDs for geometry widget option scripts ↵Matthias Kestenholz
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>
2025-06-12Fixed #25706 -- Refactored geometry widgets to remove inline JavaScript.Claude Paroz
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>
2025-06-02Fixed #36423 -- Prevented filter_horizontal buttons from intercepting form ↵Blayze
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.
2025-04-01Fixed #36284, Refs #31170 -- Ensured related lookup popups are closed properly.nessita
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>
2025-03-26Refs #34619 -- Corrected selector description in the admin.Mariusz Felisiak
2025-02-18Fixed #31170 -- Added change event trigger to dismissRelatedLookupPopup.Кайрат Макым
2025-02-18Refs #31170 -- Added JavaScript tests for RelatedObjectLookups.js.Кайрат Макым
2024-11-20Fixed #34619 -- Associated FilteredSelectMultiple elements to their label ↵GappleBee
and help text.
2024-05-22Refs #35189 -- Removed no longer necessary JavaScript file collapse.js.Marijke Luttekes
2024-05-06Migrated to ESLint 9+.Mariusz Felisiak
2023-11-30Fixed #34995 -- Improved position of related widget's add link on admin ↵Tom Carrick
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>
2023-06-09Fixed #23049 -- Added %a and %A support to Date.strftime.sarahboyce
This enables the admin to display the day as locale's abbreviated/full name if %a/%A is used in the date format.
2023-02-16Fixed #34045 -- Improved accessibility of selecting items in admin changelist.Durval Carvalho
This adds "aria-label".
2022-12-29Upgraded OpenLayers to v.7.2.2.Claude Paroz
2022-09-06Fixed #24179 -- Added filtering to selected side of vertical/horizontal filters.Gav O'Connor
2022-09-06Refs #24179 -- Added extra JS tests for admin vertical/horizontal filters.Gav O'Connor
2022-04-14Fixed #33637 -- Improved initial zoom level in MapWidget.Claude Paroz
2022-02-23Fixed #33328 -- Transformed formset:added/removed to native JS events.Claude Paroz
2021-11-25Fixed #33024 -- Fixed height of admin selector boxes in collapsed fieldset.Shubh1815
Thanks Tom Carrick for the review.
2021-03-31Fixed #32204 -- Added quick filter to admin's navigation sidebar.Maxim Milovanov
2020-10-28Fixed #32062 -- Added %b support to Date.strftime.Gagan Deep
This enables the admin to display the month as locale's abbreviated name if %b is used in the date format.
2020-10-28Added unit test for Date.getFullMonthName.Gagan Deep
2020-07-01Fixed #31522 -- Made admin's SelectBox preserve scroll position.tapan gujjar
2020-06-24Fixed #31523 -- Removed jQuery dependency from actions.js.Jon Dufresne
2020-05-27Fixed #11157 -- Stopped removing stop words in admin's prepopulated_fields.Scott Cranfill
Co-Authored-By: Andy Chosak <andy@chosak.org>
2020-04-29Refs #31493 -- Changed IIFE to ES6 blocks.Jon Dufresne
2020-04-29Fixed #31493 -- Replaced var with const and let keywords in JavaScript.Jon Dufresne
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.
2020-03-27Fixed #31404 -- Changed selector-chosen's multiple attribute to HTML5 ↵zriv
boolean syntax.
2020-03-23Refs #31032 -- Removed unsupported browsers workarounds and comments in ↵Jon Dufresne
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.
2020-03-17Removed bundled QUnit in favor of npm package.Jon Dufresne
2020-03-17Removed event handlers after JavaScript tests complete.Jon Dufresne
Fixes error "Assertion occurred after test had finished" with newer versions of QUnit.
2020-03-16Bumped minimum ESLint version to 6.8.0.Jon Dufresne
2020-03-09Fixed #31349 -- Used :nth-child() CSS pseudo-class to style alternative rows ↵Jon Dufresne
in admin.
2019-12-30Fixed #30819 -- Fixed year determination in admin calendar widget for ↵Farhaan Bukhsh
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.
2019-10-25Fixed #29087 -- Added delete buttons for unsaved admin inlines on validation ↵Carlton Gibson
error.
2019-07-02Fixed typos in comments and docs.Min ho Kim
2019-06-21Bumped minimum ESLint version to 4.18.2.Markus Holtermann
2019-03-27Removed unused timeparse.js.Nick Pope
Unused since its introduction in dd5320d1d56ca7603747dd68871e72eee99d9e67.
2019-03-27Removed unused Date.prototype.getHourMinute().Nick Pope
Unused since d2180a6bf3a72bad67bf4897b0ce2d94a6214fc4.
2019-03-27Removed unused Date.prototype.getHourMinuteSecond().Nick Pope
Unused since fa0653cd1d791a8bce835e8992cbeab6fd70d0e7.
2018-07-20Added test for DateTimeShortcuts.js time zone warning.Claude Paroz
2018-06-29Fixed #29536 -- Fixed SelectFilter2.js resizing to make boxes have equal height.Claude Paroz
Thanks Tim Graham for the review.