Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom JS to fix select all toggle on alerts list #1665

Merged
11 changes: 11 additions & 0 deletions ui/js/alerts-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@

// This is done with JS instead of CSS to override the inline styles added by Select2's JS.
$( '.select2-container', '.inline-edit-col' ).css( { width: '100%' } );

// Re-enable the select all functionality
$( '.wp-list-table thead .check-column input[type="checkbox"]' ).on(
'click',
function() {
$( this )
.parents( '.wp-list-table' )
.find( 'tbody .check-column input[type="checkbox"]' )
.click();
}
);
}
);
}( jQuery ) );