mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Merge pull request #368 from gknights/master
Add row as parameter to the format function calls #367
This commit is contained in:
commit
6c82417583
@ -452,10 +452,10 @@ ts.addWidget({
|
||||
ff = ($ths.filter('[data-column="' + i + '"]:last').hasClass('filter-match')) ? xi.search(val) >= 0 : v[i] === x;
|
||||
} else if (typeof wo.filter_functions[i] === 'function'){
|
||||
// filter callback( exact cell content, parser normalized content, filter input value, column index )
|
||||
ff = wo.filter_functions[i](x, c.cache[k].normalized[j][i], v[i], i);
|
||||
ff = wo.filter_functions[i](x, c.cache[k].normalized[j][i], v[i], i, $tr.eq(j));
|
||||
} else if (typeof wo.filter_functions[i][v[i]] === 'function'){
|
||||
// selector option function
|
||||
ff = wo.filter_functions[i][v[i]](x, c.cache[k].normalized[j][i], v[i], i);
|
||||
ff = wo.filter_functions[i][v[i]](x, c.cache[k].normalized[j][i], v[i], i, $tr.eq(j));
|
||||
}
|
||||
// Look for regex
|
||||
} else if (wo.filter_regex.regex.test(val)){
|
||||
|
Loading…
Reference in New Issue
Block a user