mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +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;
|
types = $.tablesorter.fileTypes.equivalents;
|
||||||
if (!m) {
|
if (!m) {
|
||||||
// make a string to "quick" match the existing equivalents
|
// make a string to "quick" match the existing equivalents
|
||||||
var t = [];
|
t = [];
|
||||||
$.each(types, function(i,v){
|
$.each(types, function(i,v){
|
||||||
t.push(v);
|
t.push(v);
|
||||||
});
|
});
|
||||||
|
@ -141,7 +141,7 @@
|
|||||||
return restoreValue();
|
return restoreValue();
|
||||||
}
|
}
|
||||||
// ignore change event if nothing changed
|
// 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());
|
$tar.data('ts-original-value', $tar.val());
|
||||||
// pass undefined resort value so it falls back to config.resort setting
|
// pass undefined resort value so it falls back to config.resort setting
|
||||||
$table.trigger('updateCell', [ $tar.closest('td'), undef, function(){
|
$table.trigger('updateCell', [ $tar.closest('td'), undef, function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user