Ticket #31654: 31654.9.2.colspan.patch
File 31654.9.2.colspan.patch, 1.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/inline-edit-post.js
81 81 var te = '', type = this.type, tax, c = true; 82 82 this.revert(); 83 83 84 $( '#bulk-edit td').attr('colspan', $('.widefat:first thead th:visible').length);84 $( '#bulk-edit td' ).attr( 'colspan', $( 'th:visible, #cb', '.widefat:first thead' ).length ); 85 85 // Insert the editor at the top of the table with an empty row above to maintain zebra striping. 86 86 $('table.widefat tbody').prepend( $('#bulk-edit') ).prepend('<tr class="hidden"></tr>'); 87 87 $('#bulk-edit').addClass('inline-editor').show(); … … 131 131 132 132 // add the new edit row with an extra blank row underneath to maintain zebra striping. 133 133 editRow = $('#inline-edit').clone(true); 134 $( 'td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);134 $( 'td', editRow ).attr( 'colspan', $( 'th:visible, #cb', '.widefat:first thead' ).length ); 135 135 136 136 $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>'); 137 137 -
src/wp-admin/js/inline-edit-tax.js
54 54 } 55 55 56 56 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, #cb', '.widefat:first thead' ).length ); 58 58 59 59 $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>'); 60 60