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. Built from https://develop.svn.wordpress.org/trunk@57745 git-svn-id: http://core.svn.wordpress.org/trunk@57246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbe1b7338c
commit
1692cf3469
|
@ -1169,7 +1169,7 @@ $( function() {
|
|||
lastClicked = this;
|
||||
|
||||
// Toggle the "Select all" checkboxes depending if the other ones are all checked or not.
|
||||
var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked');
|
||||
var unchecked = $(this).closest('tbody').find('tr.iedit').find(':checkbox').filter(':visible:enabled').not(':checked');
|
||||
|
||||
/**
|
||||
* Determines if all checkboxes are checked.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -268,6 +268,7 @@ window.wp = window.wp || {};
|
|||
$prev = $this.parent().prev().children( '.ntdelbutton' ),
|
||||
$next = $this.parent().next().children( '.ntdelbutton' );
|
||||
|
||||
$( 'input#cb-select-all-1, input#cb-select-all-2' ).prop( 'checked', false );
|
||||
$( 'table.widefat input[value="' + id + '"]' ).prop( 'checked', false );
|
||||
$( '#_' + id ).parent().remove();
|
||||
wp.a11y.speak( wp.i18n.__( 'Item removed.' ), 'assertive' );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-beta3-57744';
|
||||
$wp_version = '6.5-beta3-57745';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue