From 5ce9371f3069f0e62e49619b4ae1113a64f2ea14 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 7 Nov 2011 17:33:13 +0000 Subject: [PATCH] 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) --- CREDITS | 1 + resources/jquery/jquery.tablesorter.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 = $( '' ); -- 2.20.1