I am creating a support request so that my question may help others (aside from me) to keep collapsiblock menus open.
I was using jstools/collapsiblock v 1.10 and successfully kept menu/block open on href==window.location. (see code below)
I have updated jstools collapsiblock to v 1.8.2.7 (because of tabs issue). Of course my little patch to keep the menus open was overwritten, and doesn't work any more.
This is the URL of the menu (with v 1.8.2.7) in action: http://thevineyardvoice.com/
They do not stay open. I cannot show you them stay open.
This is the code snippet I used before:
$(this).find('a').each(function() {
if (this.href == window.location) {
active = id;
}
});
if (active) {
if (id != active) {
$(titleElt.target).slideUp();
}
}
else {
$(titleElt.target).slideUp();
}
}
else if (status == 4) {
alert(id);
}
I tried dropping this code into the new version, and of course it didn't work.
Can you help me understand how to keep my collapsiblocks open on an href window.location?
(I would hack through this, but I am not comfortable enough with javascript to understand your .js)
Thanks.
Comments
Comment #1
nedjoThis patch, recently applied, is probably what you're looking for:
http://drupal.org/node/194481
It will make it into the next jstools release.