From: Derk-Jan Hartman Date: Fri, 9 Dec 2011 22:39:04 +0000 (+0000) Subject: Fix issue with sortable headers when nesting a table INSIDE a table header cell ? X-Git-Tag: 1.31.0-rc.0~26105 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=934b01c67ef84d88036d06af5ab5469afdbd6296;p=lhc%2Fweb%2Fwiklou.git Fix issue with sortable headers when nesting a table INSIDE a table header cell ? Who comes up with these usecases ? :D Fixes bug 32888 --- diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index f134aabd71..1aae48e0b8 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -260,7 +260,7 @@ var maxSeen = 0, longest, realCellIndex = 0, - $tableHeaders = $( 'thead:eq(0) tr', table ); + $tableHeaders = $( 'thead:eq(0) > tr', table ); if ( $tableHeaders.length > 1 ) { $tableHeaders.each( function() { if ( this.cells.length > maxSeen ) {