﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33491	Rows are selected only on Chrome when going back from the confirmation page.	Akihito Yokose	Marcelo Galigniana	"On the admin site, I've found a feature that existed in Django 2.2 but was lost with the update to Django 3.2.

In Django 2.2, if you clicked the ""No, take me back"" button on the delete confirmation page, the background color of the checked rows would remain highlighted and the action-counter display would remain counted up on the change list page. However, in Django 3.2, the background color of the selected row is not highlighted and the action-counter display is ""0 of X selected"" (see attached images).

The reason for this is probably that the following process in django/contrib/admin/static/admin/js/actions.js was removed during the update to Django 3.2.

{{{
// Show counter by default
$(options.counterContainer).show();
// Check state of checkboxes and reinit state if needed
$(this).filter("":checked"").each(function(i) {
    $(this).parent().parent().toggleClass(options.selectedClass);
    updateCounter();
    if ($(options.acrossInput).val() === 1) {
        showClear();
    }
});
}}}

A related Issue is https://github.com/django/django/pull/12820."	Cleanup/optimization	closed	contrib.admin	3.2	Normal	fixed		Marcelo Galigniana	Ready for checkin	1	0	0	0	0	0
