mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
ColumnSelector: Add tbody colspan support. See #1120
This commit is contained in:
parent
cdd9fa9427
commit
70269e9315
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user