WordPress.org

Make WordPress Core

Changeset 33015


Ignore:
Timestamp:
07/01/2015 01:05:29 AM (4 years ago)
Author:
helen
Message:

Bulk/quick edit: Set the correct colspan.

thead can contain tds now, too.

props afercia.
fixes #31654.

Location:
trunk/src/wp-admin/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/inline-edit-post.js

    r32869 r33015  
    8282        this.revert();
    8383
    84         $('#bulk-edit td').attr('colspan', $('.widefat:first thead th:visible').length);
     84        $( '#bulk-edit td' ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );
    8585        // Insert the editor at the top of the table with an empty row above to maintain zebra striping.
    8686        $('table.widefat tbody').prepend( $('#bulk-edit') ).prepend('<tr class="hidden"></tr>');
     
    132132        // add the new edit row with an extra blank row underneath to maintain zebra striping.
    133133        editRow = $('#inline-edit').clone(true);
    134         $('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
     134        $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );
    135135
    136136        $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');
  • trunk/src/wp-admin/js/inline-edit-tax.js

    r31996 r33015  
    5555
    5656        editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
    57         $('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
     57        $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );
    5858
    5959        $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');
Note: See TracChangeset for help on using the changeset viewer.