From: Mark A. Hershberger Date: Mon, 7 Nov 2011 17:33:13 +0000 (+0000) Subject: Fix Bug #32047: in table with class="sortable", thead is before X-Git-Tag: 1.31.0-rc.0~26658 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=5ce9371f3069f0e62e49619b4ae1113a64f2ea14;p=lhc%2Fweb%2Fwiklou.git Fix Bug #32047: in table with class="sortable", thead is before caption Apply fomafix's patch for jquery.tablesorter.js (also reported upstream: https://forum.jquery.com/topic/in-table-with-class-sortable-thead-is-before-caption (currently in moderation) --- diff --git a/CREDITS b/CREDITS index 69e106d6ba..2ed738e996 100644 --- a/CREDITS +++ b/CREDITS @@ -99,6 +99,7 @@ following names for their contribution to the product. * Edward Z. Yang * Erwin Dokter * FunPika +* fomafix * Gero Scholz * Grunny * Harry Burt diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index aeada8478f..f134aabd71 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -241,7 +241,7 @@ } $thead.append( this ); } ); - $table.prepend( $thead ); + $table.children('tbody').before( $thead ); } if( !$table.get(0).tFoot ) { var $tfoot = $( '' );