input/select parser: don't update column with both sorter & filter disabled. See #570

This commit is contained in:
Mottie 2014-04-26 20:30:13 -05:00
parent 5afa58a3e4
commit 33665044bd

View File

@ -75,7 +75,15 @@
$('table').find('tbody').on('change', 'select, input', function(e){ $('table').find('tbody').on('change', 'select, input', function(e){
if (!alreadyUpdating) { if (!alreadyUpdating) {
var $tar = $(e.target), 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; alreadyUpdating = true;
$table.trigger('updateCell', [ $tar.closest('td'), resort ]); $table.trigger('updateCell', [ $tar.closest('td'), resort ]);
updateServer(e, $table, $tar); updateServer(e, $table, $tar);