WordPress.org

Make WordPress Core

Ticket #37973: 37973.diff

File 37973.diff, 630 bytes (added by afercia, 3 years ago)
  • src/wp-admin/js/common.js

     
    456456                return true;
    457457        });
    458458
    459         $('thead, tfoot').find('.check-column :checkbox').on( 'click.wp-toggle-checkboxes', function( event ) {
     459        // This event needs to be delegated. Ticket #37973.
     460        $body.on( 'click.wp-toggle-checkboxes', 'thead .check-column :checkbox, tfoot .check-column :checkbox', function( event ) {
    460461                var $this = $(this),
    461462                        $table = $this.closest( 'table' ),
    462463                        controlChecked = $this.prop('checked'),