From: Roan Kattouw Date: Sat, 17 Sep 2011 15:52:45 +0000 (+0000) Subject: Followup to r97150 per CR: use .children() instead of .find(), more efficient and... X-Git-Tag: 1.31.0-rc.0~27590 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=02fead58406f0da8947af62de4d12f6ff1f58150;p=lhc%2Fweb%2Fwiklou.git Followup to r97150 per CR: use .children() instead of .find(), more efficient and prevents potential issues with nested tables. --- diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index c17f3f2943..8085093cd0 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -229,7 +229,7 @@ function emulateTHead( $table ) { var $thead = $( '' ); $table.find( 'tr' ).each( function() { - if ( $(this).find( 'td' ).length > 0 ) { + if ( $(this).children( 'td' ).length > 0 ) { // This row contains a , so it's not a header row // Stop here return false;