diff --git a/www/js/my.full.js b/www/js/my.full.js index 9fe7ba1a2b..23a81aab4b 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -587,30 +587,26 @@ function setComment() */ function autoCheck() { - $('.tablesorter tr :checkbox').click(function() - { - if($(this).attr('checked')) - { - $(this).attr('checked', false); - } - else - { - $(this).attr('checked', true); - } - return; - }); + $('.tablesorter tr :checkbox').click(function(){clickInCheckbox = 1;}); $('.tablesorter tr').click(function() { if(document.activeElement.type != 'select-one' && document.activeElement.type != 'text') { - if($(this).find(':checkbox').attr('checked')) + if(typeof(clickInCheckbox) != 'undefined' && clickInCheckbox == 1) { - $(this).find(':checkbox').attr('checked', false); + clickInCheckbox = 0; } 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); + } } } });