Skip to content

Commit

Permalink
filter now works properly across tbodies. Fixes #264
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Mar 26, 2013
1 parent 4f310ea commit fd32150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/jquery.tablesorter.widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ $.tablesorter.addWidget({
wo = c.widgetOptions,
css = wo.filter_cssFilter || 'tablesorter-filter',
$t = $(table).addClass('hasFilters'),
b = c.$tbodies,
b = $t.find('tbody'),
cols = c.parsers.length,
reg = { // regex used in filter "check" functions
"regex" : /^\/((?:\\\/|[^\/])+)\/([mig]{0,3})?$/, // regex to test for regex
Expand Down Expand Up @@ -356,6 +356,7 @@ $.tablesorter.addWidget({
if (c.debug) { time = new Date(); }

for (k = 0; k < b.length; k++ ){
if (b.eq(k).hasClass(c.cssInfoBlock)) { continue; } // ignore info blocks, issue #264
$tb = $.tablesorter.processTbody(table, b.eq(k), true);
$tr = $tb.children('tr');
l = $tr.length;
Expand Down

0 comments on commit fd32150

Please sign in to comment.