mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Pager: Restore check for new headers. Fixes #1343
This commit is contained in:
parent
6032b121f3
commit
7528607eb4
@ -472,8 +472,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
p.processAjaxOnInit = true;
|
p.processAjaxOnInit = true;
|
||||||
// only add new header text if the length matches
|
// update new header text
|
||||||
if ( th && th.length === hl ) {
|
if ( th ) {
|
||||||
hsh = $table.hasClass('hasStickyHeaders');
|
hsh = $table.hasClass('hasStickyHeaders');
|
||||||
$sh = hsh ?
|
$sh = hsh ?
|
||||||
c.widgetOptions.$sticky.children('thead:first').children('tr:not(.' + c.cssIgnoreRow + ')').children() :
|
c.widgetOptions.$sticky.children('thead:first').children('tr:not(.' + c.cssIgnoreRow + ')').children() :
|
||||||
|
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-pager.min.js
vendored
2
dist/js/widgets/widget-pager.min.js
vendored
File diff suppressed because one or more lines are too long
@ -774,6 +774,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
wo.pager_processAjaxOnInit = true;
|
wo.pager_processAjaxOnInit = true;
|
||||||
|
// update new header text
|
||||||
|
if ( th ) {
|
||||||
hsh = $table.hasClass( 'hasStickyHeaders' );
|
hsh = $table.hasClass( 'hasStickyHeaders' );
|
||||||
$sh = hsh ?
|
$sh = hsh ?
|
||||||
wo.$sticky.children( 'thead:first' ).children( 'tr:not(.' + c.cssIgnoreRow + ')' ).children() :
|
wo.$sticky.children( 'thead:first' ).children( 'tr:not(.' + c.cssIgnoreRow + ')' ).children() :
|
||||||
@ -802,10 +804,11 @@
|
|||||||
}
|
}
|
||||||
$f.eq( j ).html( th[ j ] );
|
$f.eq( j ).html( th[ j ] );
|
||||||
}
|
}
|
||||||
if (hsh) {
|
if ( hsh ) {
|
||||||
tsp.bindEvents( c );
|
tsp.bindEvents( c );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ( c.showProcessing ) {
|
if ( c.showProcessing ) {
|
||||||
ts.isProcessing( table ); // remove loading icon
|
ts.isProcessing( table ); // remove loading icon
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user