From d8d5908d4139febab17e1db1b502a27236eb2498 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 4 Nov 2015 12:35:57 -0600 Subject: [PATCH] Core: jQuery filter element parameter not defined in v1.2.6 --- js/jquery.tablesorter.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index 9fbe71f0..a4f7b6ca 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -1019,12 +1019,13 @@ if ( list[ indx ][ 1 ] !== 2 ) { // multicolumn sorting updating - see #1005 // .not(function(){}) needs jQuery 1.4 - $sorted = c.$headers.filter( function( i, el ) { + // filter(function(i, el){}) <- el is undefined in jQuery v1.2.6 + $sorted = c.$headers.filter( function( i ) { // only include headers that are in the sortList (this includes colspans) var include = true, - $el = $( el ), + $el = c.$headers.eq( i ), col = parseInt( $el.attr( 'data-column' ), 10 ), - end = col + el.colSpan; + end = col + c.$headers[ i ].colSpan; for ( ; col < end; col++ ) { include = include ? ts.isValueInArray( col, c.sortList ) > -1 : false; }