From 2983454fda5e17a161a4b9932f416b20bf169f7c Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 3 Apr 2018 09:22:43 -0500 Subject: [PATCH] Input-select: Update #1535 --- js/parsers/parser-input-select.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/parsers/parser-input-select.js b/js/parsers/parser-input-select.js index 39fde1a0..74c18234 100644 --- a/js/parsers/parser-input-select.js +++ b/js/parsers/parser-input-select.js @@ -1,4 +1,4 @@ -/*! Parser: input & select - updated 2018-01-30 (v2.29.5) *//* +/*! Parser: input & select - updated 2018-03-03 (v2.30.2) *//* * for jQuery 1.7+ & tablesorter 2.7.11+ * Demo: http://mottie.github.com/tablesorter/docs/example-widget-grouping.html */ @@ -161,13 +161,14 @@ } }, updateHeaderCheckbox = function( $table, checkboxClass ) { - var $rows = $table.children( 'tbody' ).children( ':visible' ), // (include child rows?) + var $sticky, + $rows = $table.children( 'tbody' ).children( ':visible' ), // (include child rows?) len = $rows.length, 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 + '"]' ); + if (hasSticky) { + $sticky = hasSticky.find( '[data-column="' + column + '"]' ); } var column = $( this ).closest( 'td, th' ).attr( 'data-column' ), vis = $rows.filter( '.' + checkboxClass + '-' + column ).length,