Fixes issue #1534. Updated function to check to see if hasSticky has been set or is undefined.
This commit is contained in:
adamz01h 2018-04-03 09:41:26 -04:00 committed by Rob Garrison
parent 015db985cd
commit 977c08ccd7

View File

@ -166,8 +166,10 @@
hasSticky = $table[0].config.widgetOptions.$sticky;
// set indeterminate state on header checkbox
$table.children( 'thead' ).find( 'input[type="checkbox"]' ).each( function() {
if (hasSticky){
var $sticky = hasSticky.find( '[data-column="' + column + '"]' );
}
var column = $( this ).closest( 'td, th' ).attr( 'data-column' ),
$sticky = hasSticky.find( '[data-column="' + column + '"]' ),
vis = $rows.filter( '.' + checkboxClass + '-' + column ).length,
allChecked = vis === len && len > 0;
if ( vis === 0 || allChecked ) {