From: Roan Kattouw Date: Thu, 6 Oct 2011 12:52:26 +0000 (+0000) Subject: (bug 31420) Fix weird tablesorter bug where headers spanning multiple rows would... X-Git-Tag: 1.31.0-rc.0~27235 X-Git-Url: https://git.cyclocoop.org/admin/%7B%24admin_url%7Dmembres/import.php?a=commitdiff_plain;h=08d90ea00286f317d25b98d12a352032a506a64a;p=lhc%2Fweb%2Fwiklou.git (bug 31420) Fix weird tablesorter bug where headers spanning multiple rows would get screwed up. Thanks to TheDJ for essentially telling me exactly how to fix this, he was spot on. --- diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index f054aaac40..c98861245e 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -442,7 +442,7 @@ function explodeRowspans( $table ) { // Split multi row cells into multiple cells with the same content - $table.find( '[rowspan]' ).each(function() { + $table.find( 'tbody [rowspan]' ).each(function() { var rowSpan = this.rowSpan; this.rowSpan = 1; var cell = $( this );