mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
ColumnSelector: fix column index issue, again
This commit is contained in:
parent
ffb5ffc5fd
commit
ff851938d7
@ -256,9 +256,11 @@ tsColSel = ts.columnSelector = {
|
|||||||
$popup.find('.tablesorter-column-selector')
|
$popup.find('.tablesorter-column-selector')
|
||||||
.html( colSel.$container.html() )
|
.html( colSel.$container.html() )
|
||||||
.find('input').each(function(){
|
.find('input').each(function(){
|
||||||
var indx = $(this).toggleClass( wo.columnSelector_cssChecked, isChecked ).attr('data-column'),
|
var indx = $(this).attr('data-column'),
|
||||||
isChecked = indx === 'auto' ? colSel.auto : colSel.states[indx];
|
isChecked = indx === 'auto' ? colSel.auto : colSel.states[indx];
|
||||||
$(this).prop( 'checked', isChecked );
|
$(this)
|
||||||
|
.toggleClass( wo.columnSelector_cssChecked, isChecked )
|
||||||
|
.prop( 'checked', isChecked );
|
||||||
});
|
});
|
||||||
colSel.$popup = $popup.on('change', 'input', function(){
|
colSel.$popup = $popup.on('change', 'input', function(){
|
||||||
// data input
|
// data input
|
||||||
|
Loading…
Reference in New Issue
Block a user