diff --git a/www/js/my.js b/www/js/my.js index 0292ac6d21..a5b4691932 100644 --- a/www/js/my.js +++ b/www/js/my.js @@ -576,26 +576,36 @@ function selectItem(SelectID) /** * Auto checked the checkbox of a row. * - * @param string $classID * @access public * @return void */ 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() + { + if($(this).attr('checked')) + { + $(this).attr('checked', false); + } + else + { + $(this).attr('checked', true); + } + return; }); - $('.tablesorter tr').click(function(){ - if($(this).find(':checkbox').attr('checked')) - $(this).find(':checkbox').attr('checked', false); - else - $(this).find(':checkbox').attr('checked', true); + $('.tablesorter tr').click(function() + { + if($(this).find(':checkbox').attr('checked')) + { + $(this).find(':checkbox').attr('checked', false); + } + else + { + $(this).find(':checkbox').attr('checked', true); + } }); } + /* Ping the server every some minutes to keep the session. */ needPing = true;