Skip to content

Commit

Permalink
Merge pull request #368 from gknights/master
Browse files Browse the repository at this point in the history
Add row as parameter to the format function calls #367
  • Loading branch information
Mottie committed Sep 30, 2013
2 parents 83263a9 + 82f4a55 commit 6c82417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery.tablesorter.widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)){
Expand Down

0 comments on commit 6c82417

Please sign in to comment.