#33491: Missing feature in actions.js (Django 3.2 and later)
------------------------------------------+------------------------
               Reporter:  Akihito Yokose  |          Owner:  nobody
                   Type:  Bug             |         Status:  new
              Component:  contrib.admin   |        Version:  3.2
               Severity:  Normal          |       Keywords:
           Triage Stage:  Unreviewed      |      Has patch:  0
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  0
                  UI/UX:  0               |
------------------------------------------+------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33491>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.ea87eee293d409575002b68fdb9cf49a%40djangoproject.com.

Reply via email to