From 33665044bdb5c60e2276d3b71c2566e253546c8a Mon Sep 17 00:00:00 2001 From: Mottie Date: Sat, 26 Apr 2014 20:30:13 -0500 Subject: [PATCH] input/select parser: don't update column with both sorter & filter disabled. See #570 --- js/parsers/parser-input-select.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/parsers/parser-input-select.js b/js/parsers/parser-input-select.js index 6d79c9a9..c248ed92 100644 --- a/js/parsers/parser-input-select.js +++ b/js/parsers/parser-input-select.js @@ -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);