SilverOK Posted November 2, 2010 Share Posted November 2, 2010 Hello!I have a script, which collapse/expand blocks: $(document).ready(function(){ $(".block h4").nextAll().hide(); $(".block_content, .block h4").click(function(){ $(".block_content").nextAll().hide(); $(this).nextAll().slideToggle("fast"); }); }); Help me to make that the list with the active element wouldn't be collapse blocks on the current page.Example with the correct working script: _http://sekta.name Link to comment Share on other sites More sharing options...
WisdOMbooks Posted November 3, 2010 Share Posted November 3, 2010 ... Help me to make that the list with the active element wouldn't be collapse blocks on the current page... Ex. with the correct working script: _http://sekta.name SilverOK,Thank you for your input.However, myself,could not really understand much, from the quoted words of yours, what this message is all about.BUT... ...... YES!Code for Collapsible blocks (like the small upward/downward small triangle in the official PS CartBlock) could be wonderful to have. I was thinking especially to the MyAccountBlock, which is occupying a lot of space. Anyone knows or have read anywhere in the forums about how to make any block collapsible? My searching could not find much (Greetings to all )Angelofrom Calcutta Link to comment Share on other sites More sharing options...
WisdOMbooks Posted November 30, 2010 Share Posted November 30, 2010 Just a small bumper, after one whole month of silence...It should be helpful to many visitors/customers to be allowed to collapse blocks,with a small arrow up or down, like in the cart block.This is especially relevant for the seldom-used MyAccount block,that occupies such a big prime estateI guess the code should be there inside that,but 2 good php-eyes should look into it...Though I am wearing quite good html-spectacles )I am afraid thatI am a bit php-blind (CIAO from Kolkata (Calcutta):Angelo Link to comment Share on other sites More sharing options...
ALMAJ Posted May 19, 2013 Share Posted May 19, 2013 Hello! I have a script, which collapse/expand blocks: $(document).ready(function(){ $(".block h4").nextAll().hide(); $(".block_content, .block h4").click(function(){ $(".block_content").nextAll().hide(); $(this).nextAll().slideToggle("fast"); }); }); Help me to make that the list with the active element wouldn't be collapse blocks on the current page. Example with the correct working script: _http://sekta.name Hello SilverOK did you managed to make this working? i'm also interested to have an option to expand and collapse any blocks my prestashop version is: 1.5.4.1 can you please help Tanks in advance Alcino Major 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