mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Allow multiple external inputs to work with bindSearch function
This commit is contained in:
parent
a59c7f46b9
commit
d544d46402
@ -708,7 +708,15 @@ ts.filter = {
|
||||
return;
|
||||
}
|
||||
// external searches won't have a filter parameter, so grab the value
|
||||
external = $(this).hasClass('tablesorter-filter') ? filter : [ $(this).val() ];
|
||||
if ($(this).hasClass('tablesorter-filter')) {
|
||||
external = filter;
|
||||
} else {
|
||||
external = [];
|
||||
$el.each(function(){
|
||||
// target the appropriate column if the external input has a data-column attribute
|
||||
external[ $(this).data('column') || 0 ] = $(this).val();
|
||||
});
|
||||
}
|
||||
ts.filter.searching(table, filter, external);
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user