Jump to content

[BUG+FIX] Cannot check categories when items are hidden


Recommended Posts

Fix

In check.js replace


if (state)
{
for (i=1; cat[i] != null; i++)
{
if (cat[i]==thisCat)
{
if (!isChecked(i))
{
allChked=false;
break;
}
}
}
}

with


if (state)
{
for (i=1; cat[i] != null; i++)
{
if (cat[i]==thisCat && document.getElementById("chkbox"+i) != null)
{
if (!isChecked(i))
{
allChked=false;
break;
}
}
}
}

Link to post
Share on other sites

There's also


else //If program checkbox was checked
{
if (!prog[thisChk])
return; //Ensure checkbox exists
thisCat=cat[thisChk].toString();
}

to replace with


else //If program checkbox was checked
{
if (!prog[thisChk] || document.getElementById("chkbox"+thisChk) == null)
return; //Ensure checkbox exists
thisCat=cat[thisChk].toString();
}

or the categories wouldn't be checked at startup

Link to post
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...