Thank you for the module.
I use the latest dev-release in ajax mode and it works good.
But there is one moment: I tried an additional script so that to have dropping blocks no to overlap each other at the same time, like at Syfy.de, but with no result. I mean, opening a new block is to close another if open.
Is there any simple way to make this work? It would be great if this option could be implemented in next release.

Comments

flamez-b’s picture

Assigned: flamez-b » Unassigned
cameron tod’s picture

This is probably best implemented with CSS rather than Javascript. Have you attempted to implement custom CSS to achieve this?

flamez-b’s picture

I tried different CSS combinations with :active and :target but could not get the desired bevavior. Finally solved with Javascript:

$('a.menu-attach-block-drop-link').click(function (event) {
    var link = $(this);
    if ($(this).parents('li').hasClass('dropped')) {
        $(link).parents('li').siblings('.dropped').toggleClass('dropped').find('.menu-attach-block-wrapper').toggle();
    }
});

Works perfect!

flamez-b’s picture

Status: Active » Closed (fixed)
subhojit777’s picture

Is there any plan to commit the code in #3 in the module itself.

webmestre’s picture

@flamez-b #3 : could you please tell where you insert this new js code?