django1/django/contrib/admin
Marcelo Galigniana 0aa2f16e63 Fixed -- Fixed change-list selected row-highlight on cancelled delete.
Selected rows where not highlighted when returning to the change-list
after clicking "No, take me back" on the deletion confirmation page.

This commit uses the CSS :has() pseudo-class to apply the highlight
without requiring the .selected class, which is added by JavaScript
on the click event.

Once all supported browsers have :has() available, the .selected
selector and the JavaScript to add the class can be removed.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-08-17 11:49:34 +02:00
..
locale Updated translations from Transifex. 2022-08-03 08:04:34 +02:00
migrations Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
static/admin Fixed -- Fixed change-list selected row-highlight on cancelled delete. 2022-08-17 11:49:34 +02:00
templates Fixed -- Added switch button for dark mode in the admin. 2022-08-02 17:14:24 +02:00
templatetags Fixed -- Fixed error when rendering invalid inlines with readonly fields in admin. 2022-03-01 08:09:58 +01:00
views Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
__init__.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
actions.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
apps.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
checks.py Refs -- Disallowed primary keys in ModelAdmin.list_editable. 2022-04-25 11:00:50 +02:00
decorators.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
exceptions.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
filters.py Refs , Refs -- Used Q.create() internally for dynamic Q() objects. 2022-07-27 10:06:24 +02:00
forms.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
helpers.py Removed unused InlineAdminForm.ordering_field(). 2022-08-09 09:26:12 +02:00
models.py Refs -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
options.py Refs , Refs -- Used Q.create() internally for dynamic Q() objects. 2022-07-27 10:06:24 +02:00
sites.py Fixed -- Allowed overriding the order of apps and models in admin. 2022-03-25 10:33:44 +01:00
tests.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
utils.py Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
widgets.py Fixed -- Fixed get_select2_language() crash with no language activated. 2022-08-03 19:51:25 +02:00