* fix for task #386

This commit is contained in:
wangyidong
2011-04-19 03:25:14 +00:00
parent 74bc854367
commit 0dd6e1cc91
+22 -12
View File
@@ -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;