mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Fixes issue #1534
Fixes issue #1534. Updated function to check to see if hasSticky has been set or is undefined.
This commit is contained in:
parent
015db985cd
commit
977c08ccd7
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user