From 0dd6e1cc91b3a0d537d87cd464bb9592578ef432 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 19 Apr 2011 03:25:14 +0000 Subject: [PATCH] * fix for task #386 --- www/js/my.js | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) 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;