Make WordPress Core

Changeset 57745

Timestamp:
02/29/2024 10:00:53 PM (4 months ago)
Author:
swissspidy
Message:

Quick/Bulk Edit: Ensure the “All” checkbox is properly toggled in certain scenarios.

When removing a single item from the bulk edit box or when adding more items, the “All” checkboxes at the top and bottom of the posts list table should be properly toggled.

Props hiteshtalpada, oglekler, webcommsat, ugyensupport, chaion07, Toru.
Fixes #59121.

Location:
trunk/src/js/_enqueues/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/common.js

    r57654 r57745  
    11701170
    11711171        // Toggle the "Select all" checkboxes depending if the other ones are all checked or not.
    1172         var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked');
     1172        var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked');
    11731173
    11741174        /**
  • trunk/src/js/_enqueues/admin/inline-edit-post.js

    r57580 r57745  
    269269                $next = $this.parent().next().children( '.ntdelbutton' );
    270270
     271
    271272            $( 'table.widefat input[value="' + id + '"]' ).prop( 'checked', false );
    272273            $( '#_' + id ).parent().remove();
Note: See TracChangeset for help on using the changeset viewer.