Fix Bug #32047: in table with class="sortable", thead is before
authorMark A. Hershberger <mah@users.mediawiki.org>
Mon, 7 Nov 2011 17:33:13 +0000 (17:33 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Mon, 7 Nov 2011 17:33:13 +0000 (17:33 +0000)
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
resources/jquery/jquery.tablesorter.js

diff --git a/CREDITS b/CREDITS
index 69e106d..2ed738e 100644 (file)
--- 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
index aeada84..f134aab 100644 (file)
                                }
                                $thead.append( this );
                        } );
-                       $table.prepend( $thead );
+                       $table.children('tbody').before( $thead );
                }
                if( !$table.get(0).tFoot ) {
                        var $tfoot = $( '<tfoot>' );