mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: redefine c.$headers when building headers for new/replaced header cells. Fixes #683
This commit is contained in:
parent
98be14f808
commit
d0c8856582
@ -423,7 +423,8 @@
|
||||
c.columns = ts.computeColumnIndex( c.$table.children('thead, tfoot').children('tr') );
|
||||
// add icon if cssIcon option exists
|
||||
i = c.cssIcon ? '<i class="' + ( c.cssIcon === ts.css.icon ? ts.css.icon : c.cssIcon + ' ' + ts.css.icon ) + '"></i>' : '';
|
||||
c.$headers.each(function(index) {
|
||||
// redefine c.$headers here in case of an updateAll that replaces or adds an entire header cell - see #683
|
||||
c.$headers = $(table).find(c.selectorHeaders).each(function(index) {
|
||||
$t = $(this);
|
||||
// make sure to get header cell & not column indexed cell
|
||||
ch = ts.getColumnData( table, c.headers, index, true );
|
||||
|
Loading…
Reference in New Issue
Block a user