Jump to content

Disable category check boxes


Recommended Posts


@RJTPlomp: The category check box will check apps, but not uncheck them.

Checking a category box will check any unchecked items within that category. However, unchecking the category does not uncheck all the apps in that category. This may be something that needs to be changed.

Good catch RJTPlomp. :thumbup

Link to comment
Share on other sites

Definitely a bug. Here's the fix.

In check.js:

Function setUnchecked

else 
{
var chkbox = document.getElementById("chkbox"+i);
var lbl = document.getElementById('lbl'+i);

if (chkbox==null)
return;
if (forc[i]!=null && forc[i]=='yes') //<------------add this line
return; //<------------add this line
chkbox.checked=false;
lbl.className='txt';
tabs++;
uncheckChildren(i);
if (DisableOnDepsNotMet)
disableChildren(i);
if (useExclusions)
checkExclusions(i);
tabs--;
}

Function checkCategory

if (isCategory(thisChk)) //If category checkbox was checked
{
thisCat = thisChk;

for(i=1; cat[i] != null; i++)
{
if (cat[i] == thisCat)
{
if (state)
{
setChecked(i);
checkDeps(i);
}
else
{
// setUnchecked(i); //<--------remove the "//" at the begining
checkDeps(i);
}
}
}
}

Link to comment
Share on other sites

Ok, good. I was starting to get confused as to what you were talking about.

I was confused as well... but downloaded the new fix, tested it, and found out it works like magic again. Great, thx!

Ro

Edited by RJTPlomp
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...