From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- resources/jquery/jquery.tablesorter.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'resources/jquery/jquery.tablesorter.js') diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 5af27cc4..ea86b64e 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -8,8 +8,9 @@ * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * - * @depends on mw.config (wgDigitTransformTable, wgMonthNames, wgMonthNamesShort, + * Depends on mw.config (wgDigitTransformTable, wgMonthNames, wgMonthNamesShort, * wgDefaultDateFormat, wgContentLanguage) + * Uses 'tableSorterCollation' in mw.config (if available) */ /** * @@ -240,7 +241,7 @@ } $thead.append( this ); } ); - $table.children('tbody').before( $thead ); + $table.find(' > tbody:first').before( $thead ); } if( !$table.get(0).tFoot ) { var $tfoot = $( '' ); @@ -259,9 +260,9 @@ 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() { + $tableHeaders.each( function() { if ( this.cells.length > maxSeen ) { maxSeen = this.cells.length; longest = this; @@ -594,7 +595,7 @@ if ( firstTime ) { firstTime = false; - + // Legacy fix of .sortbottoms // Wrap them inside inside a tfoot (because that's what they actually want to be) & // and put the at the end of the @@ -604,10 +605,10 @@ if ( $tfoot.length ) { $tfoot.eq(0).prepend( $sortbottoms ); } else { - $table.append( $( '' ).append( $sortbottoms ) ) + $table.append( $( '' ).append( $sortbottoms ) ); } } - + explodeRowspans( $table ); // try to auto detect column type, and store in tables config table.config.parsers = buildParserCache( table, $headers ); -- cgit v1.2.2