marecki Posted December 29, 2009 Share Posted December 29, 2009 Hey,I would like to edit category block in that way, that after clicking on category name (in my shop 2009, 2008...) it would be the same effect like after clicking on the tiny + which is before every cat. name. (it doesn't load subcategory page but just open category tree.) Link to comment Share on other sites More sharing options...
marecki Posted December 30, 2009 Author Share Posted December 30, 2009 Please help me I don't have any idea how to make it. Link to comment Share on other sites More sharing options...
rocky Posted December 31, 2009 Share Posted December 31, 2009 You could use my module here to do this, but then the +/- buttons would disappear and only the links would work as you want. It would require modifications to have both the +/- buttons and links to work the same way. The following code in js/tools/treeManagement.js adds the click event: //add a fonction on clicks on growers $('ul.tree.dhtml span.grower').click(function(){ toggleBranch($(this)); }); You need to add the same click event to the links in the category block. Link to comment Share on other sites More sharing options...
marecki Posted January 2, 2010 Author Share Posted January 2, 2010 Big thanks for help, you made my day CheersMarek Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now