ColumnSelector: Add tbody colspan support. See #1120

This commit is contained in:
Rob Garrison 2016-01-10 13:58:13 -06:00
parent cdd9fa9427
commit 70269e9315

View File

@ -327,7 +327,7 @@
hasSpans = false, hasSpans = false,
$cells = c.$table $cells = c.$table
.add( $(c.namespace + '_extra_table') ) .add( $(c.namespace + '_extra_table') )
.children('thead, tfoot') .children()
.children('tr') .children('tr')
.children('th, td'), .children('th, td'),
len = $cells.length; len = $cells.length;
@ -338,6 +338,8 @@
$cells.eq( index ) $cells.eq( index )
.addClass( c.namespace.slice( 1 ) + 'columnselectorHasSpan' ) .addClass( c.namespace.slice( 1 ) + 'columnselectorHasSpan' )
.attr( 'data-col-span', span ); .attr( 'data-col-span', span );
// add data-column values
ts.computeColumnIndex( $cells.eq( index ).parent() );
} }
} }
// only add resize end if using media queries // only add resize end if using media queries