From d0adfe288f24cf519e16c15dc48997cacbc9bbec Mon Sep 17 00:00:00 2001 From: Mottie Date: Tue, 8 Oct 2013 19:16:11 -0500 Subject: [PATCH] Filter widget will work properly with sub-tables. Fixes #354 --- js/jquery.tablesorter.widgets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.tablesorter.widgets.js b/js/jquery.tablesorter.widgets.js index 541624cb..5680a45a 100644 --- a/js/jquery.tablesorter.widgets.js +++ b/js/jquery.tablesorter.widgets.js @@ -362,7 +362,7 @@ ts.addWidget({ last = '', // save last filter search $ths = c.$headers, $t = c.$table.addClass('hasFilters'), - b = $t.find('tbody'), + b = c.$tbodies, cols = c.parsers.length, parsed, time, timer, @@ -748,7 +748,7 @@ ts.addWidget({ if ($(document.activeElement).closest('tr')[0] !== ft[0]){ // get all filter values all = $t.find('.tablesorter-filter').map(function(){ - return $(this).val() || ''; + return $(this).val() || ''; }).get().join(''); // don't hide row if any filter has a value if (all === ''){