Parsers: Fix checkbox parser not updating properly

This commit is contained in:
Mottie 2015-02-12 14:34:15 -06:00
parent 5ad4509969
commit b425a715bf
2 changed files with 2 additions and 2 deletions

View File

@ -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);
});

View File

@ -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(){