Skip to content

Commit

Permalink
Pager: Restore check for new headers. Fixes #1343
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Dec 29, 2016
1 parent 6032b12 commit 7528607
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
4 changes: 2 additions & 2 deletions addons/pager/jquery.tablesorter.pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@
}
}
p.processAjaxOnInit = true;
// only add new header text if the length matches
if ( th && th.length === hl ) {
// update new header text
if ( th ) {
hsh = $table.hasClass('hasStickyHeaders');
$sh = hsh ?
c.widgetOptions.$sticky.children('thead:first').children('tr:not(.' + c.cssIgnoreRow + ')').children() :
Expand Down
2 changes: 1 addition & 1 deletion dist/js/extras/jquery.tablesorter.pager.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7528607

Please sign in to comment.