1
0
mirror of https://github.com/django/django.git synced 2025-04-26 18:24:36 +00:00

9 Commits

Author SHA1 Message Date
nessita
a245604277
Fixed #36284, Refs #31170 -- Ensured related lookup popups are closed properly.
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-04-01 13:52:22 -03:00
Кайрат Макым
51398f8bd5 Fixed #31170 -- Added change event trigger to dismissRelatedLookupPopup. 2025-02-18 10:34:14 +01:00
Кайрат Макым
91bebf1adb Refs #31170 -- Added JavaScript tests for RelatedObjectLookups.js. 2025-02-18 10:34:14 +01:00
Jon Dufresne
f982f0bdb8
Refs #31032 -- Removed unsupported browsers workarounds and comments in 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-23 06:19:10 +01:00
Jon Dufresne
38e2fdf1b0
Bumped minimum ESLint version to 6.8.0. 2020-03-16 06:20:22 +01:00
Tim Graham
620dcdde6e Updated to QUnit 2.0.1. 2016-12-19 12:43:47 -05:00
Thomas Grainger
cbaa3ee3ee Refs #25165 -- Removed unnecessary HTML unescaping in admin add/edit popups.
Because we now load data into the page via JSON, we don't need to
unescape it anymore.
2016-01-08 18:24:04 -05:00
Nik Nyby
722bf23518 Added linting for JavaScript tests. 2015-09-02 13:52:38 -04:00
Trey Hunner
2d0dead224 DEP 0003 -- Added JavaScript unit tests.
Setup QUnit, added tests, and measured test coverage.

Thanks to Nick Sanford for the initial tests.
2015-06-30 21:04:16 -04:00