Filter widget will work properly with sub-tables. Fixes #354

This commit is contained in:
Mottie 2013-10-08 19:16:11 -05:00
parent 29c5bf4a4d
commit d0adfe288f

View File

@ -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 === ''){