diff --git a/js/parsers/parser-file-type.js b/js/parsers/parser-file-type.js index c64a82cc..0a328e7e 100644 --- a/js/parsers/parser-file-type.js +++ b/js/parsers/parser-file-type.js @@ -49,7 +49,7 @@ types = $.tablesorter.fileTypes.equivalents; if (!m) { // make a string to "quick" match the existing equivalents - var t = []; + t = []; $.each(types, function(i,v){ t.push(v); }); diff --git a/js/parsers/parser-input-select.js b/js/parsers/parser-input-select.js index 131c882e..d684cbb7 100644 --- a/js/parsers/parser-input-select.js +++ b/js/parsers/parser-input-select.js @@ -141,7 +141,7 @@ return restoreValue(); } // ignore change event if nothing changed - if ($tar.val() !== $tar.data('ts-original-value')) { + if ($tar.val() !== $tar.data('ts-original-value') || e.target.type === 'checkbox') { $tar.data('ts-original-value', $tar.val()); // pass undefined resort value so it falls back to config.resort setting $table.trigger('updateCell', [ $tar.closest('td'), undef, function(){