Pager: Restore check for new headers. Fixes #1343

This commit is contained in:
Rob Garrison 2016-12-29 04:11:20 -06:00
parent 6032b121f3
commit 7528607eb4
4 changed files with 35 additions and 32 deletions

View File

@ -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

File diff suppressed because one or more lines are too long

View File

@ -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
} }