mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Parsers: Fix checkbox parser not updating properly
This commit is contained in:
parent
5ad4509969
commit
b425a715bf
@ -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);
|
||||
});
|
||||
|
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user