Hi,

I've currently got jstools/activemenus installed and it's great to be able to expand a parent menu item without reloading the whole page.

However, the clickable area which causes the expanding behaviour only appears on the left of the parent menu item. What I would really like is to be able to click anywhere on the parent menu item itself in order to get the expanding effect.

You can see the effect I'm after on http://www.webmonkey.com/ ... try clicking on the items in the "how-to library" menu.

I realise that you would have to disable the url link on the parent menu item in order to achieve this effect, but that's fine by me... most of the time it's just a summary page anyway, and I could always add an extra child menu item to cover that page if it was really needed.

This functionality used to be provided by the http://drupal.org/project/spajax_mm module, but this doesn't work with Drupal 5.

Has anyone managed to modify activemenus to make the whole parent menu item clickable? Or is there another way I can achieve this effect without days of hacking?

Comments

nedjo’s picture

I'm not planning to support this behaviour in activemenus.

milksamsa’s picture

I'm also very interested in achieving this.
It would be great...

milksamsa’s picture

Maybe we could somehow customize it by modifying this lines?

// Determine if we are in the selection area.
          if (offset < (padding.slice(-2) == "px" ? parseInt(padding) : 18)) {
            $(elt).addClass('loading');

Could someone help me in achieving this please?

Thanks.