apply filter class to child rows when pager countChildRows is true. Fixes #396.

This commit is contained in:
Mottie 2013-11-02 10:52:55 -05:00
parent cb3ee451b8
commit 4ea59d82dc

View File

@ -1,4 +1,4 @@
/*! tableSorter 2.8+ widgets - updated 10/31/2013 /*! tableSorter 2.8+ widgets - updated 11/2/2013
* *
* Column Styles * Column Styles
* Column Filters * Column Filters
@ -533,7 +533,12 @@ ts.addWidget({
} }
$tr[j].style.display = (r ? '' : 'none'); $tr[j].style.display = (r ? '' : 'none');
$tr.eq(j)[r ? 'removeClass' : 'addClass'](wo.filter_filteredRow); $tr.eq(j)[r ? 'removeClass' : 'addClass'](wo.filter_filteredRow);
if (cr.length) { cr[r ? 'show' : 'hide'](); } if (cr.length) {
if (c.pager && c.pager.countChildRows || wo.pager_countChildRows) {
cr[r ? 'removeClass' : 'addClass'](wo.filter_filteredRow); // see issue #396
}
cr[r ? 'show' : 'hide']();
}
} }
} }
ts.processTbody(table, $tb, false); ts.processTbody(table, $tb, false);