mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter widget will work properly with sub-tables. Fixes #354
This commit is contained in:
parent
29c5bf4a4d
commit
d0adfe288f
@ -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 === ''){
|
||||
|
Loading…
Reference in New Issue
Block a user