mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
input/select parser: don't update column with both sorter & filter disabled. See #570
This commit is contained in:
parent
5afa58a3e4
commit
33665044bd
@ -75,7 +75,15 @@
|
||||
$('table').find('tbody').on('change', 'select, input', function(e){
|
||||
if (!alreadyUpdating) {
|
||||
var $tar = $(e.target),
|
||||
$table = $tar.closest('table');
|
||||
$cell = $tar.closest('td'),
|
||||
$table = $cell.closest('table'),
|
||||
indx = $cell[0].cellIndex,
|
||||
c = $table[0].config,
|
||||
$hdr = c && c.$headers && c.$headers.eq(indx);
|
||||
// don't use updateCell if column is set to "sorter-false" and "filter-false"
|
||||
if ($hdr.length && $hdr.hasClass('sorter-false') && $hdr.hasClass('filter-false')){
|
||||
return false;
|
||||
}
|
||||
alreadyUpdating = true;
|
||||
$table.trigger('updateCell', [ $tar.closest('td'), resort ]);
|
||||
updateServer(e, $table, $tar);
|
||||
|
Loading…
Reference in New Issue
Block a user