max9791 Posted February 5, 2013 Share Posted February 5, 2013 Bonjour, je voudrais désactivé le clic au catégories qui admettes des sous-catégorie. Merci infiniment de votre aide. Hello i search for method to desactivate click on categorie parent, if they had a categorie child. thx for help Link to comment Share on other sites More sharing options...
max9791 Posted February 5, 2013 Author Share Posted February 5, 2013 please help !! Link to comment Share on other sites More sharing options...
PascalVG Posted February 5, 2013 Share Posted February 5, 2013 (edited) Do you mean to automatically open any subcategories under the main category in the category tree? If so, look in your <current theme> folder. There should be a folder js. In this folder is a tools folder, with in it a file treeManagement.js. Open this file and scroll down until you see //collapse every expanded branch $('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide(); $('ul.tree.dhtml').show(); Then comment out the "grower line" //collapse every expanded branch // $('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide(); // <--- This one $('ul.tree.dhtml').show(); Reload your (front)page, and check the result. (Clear browser cache if needed) Hope this helps, Pascal Edited February 5, 2013 by PascalVG (see edit history) 1 Link to comment Share on other sites More sharing options...
max9791 Posted February 10, 2013 Author Share Posted February 10, 2013 thx Pascal, you saved me (y) Link to comment Share on other sites More sharing options...
max9791 Posted February 10, 2013 Author Share Posted February 10, 2013 [solved] 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