* finish the task #637 and bug #276.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-27 01:30:26 +00:00
parent 76810d7fec
commit 66c02ea5a9
+9 -6
View File
@@ -564,13 +564,16 @@ function autoCheck()
$('.tablesorter tr').click(function()
{
if($(this).find(':checkbox').attr('checked'))
if(document.activeElement.type != 'select-one' && document.activeElement.type != 'text')
{
$(this).find(':checkbox').attr('checked', false);
}
else
{
$(this).find(':checkbox').attr('checked', true);
if($(this).find(':checkbox').attr('checked'))
{
$(this).find(':checkbox').attr('checked', false);
}
else
{
$(this).find(':checkbox').attr('checked', true);
}
}
});
}