Jump to content

treemanagement collapse all categories when on is open


Recommended Posts

Hi everybody,

Im trying to change the menu tree. I want to be able to click on a category name, open that one(subcategories will appear) and then click to another category name (subcategories will appear) and the previous opened category should collapse.

Im working on the treemanagement file but cannot make it work:(

function toggleBranch(jQueryElement, noAnimation) {
   if(jQueryElement.hasClass('OPEN'))

       closeBranch(jQueryElement, noAnimation);

   else
       openBranch(jQueryElement, noAnimation);
}



Do you have ideas how I can do that?

Regards

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
×
×
  • Create New...