If an item from the menu is clicked, it remains expanded. I need the menu to collapse if there is no mouseover. I need it to function the same way as the top menu at GM.com.

I'm guessing there's no way to do this from the interface? If I need to dig into the code, would anyone happen to know what code to comment out/modify?

Feel free to let me know if I'm describing another module that would suit my needs better.

Thanks.

Comments

alberto56’s picture

Version: 6.x-2.0-alpha3 » 7.x-2.0-alpha2
Category: support » bug
Priority: Normal » Major

Effectively, this is a bug in x.x-2.x, You'll find the stable 6.x-1.x branch works as you desire.

The timeout seems to be ignored in x.x-2.x

This will be fixed first in 7.x-2.x, and then backported to 6.x-2.x

Cheers,

Albert.

alberto56’s picture

Title: Need submenu to contract if mouse-off » dpms.menus[settings_id] is undefined, preventing submenus from disappearing after timeout on mouse-off

In 7.x-2.x, as in 6.x-2.x, the problem is an undefined timeout in the javascript:

dpms.menus[settings_id] is undefined 

This might have to do with the timeout being zero by default when adding new menus to admin/config/user-interface/dynamic_persistent_menu

alberto56’s picture

Title: dpms.menus[settings_id] is undefined, preventing submenus from disappearing after timeout on mouse-off » dpms.menus[settings_id] is undefined when more than one dynamic menu defined, prevents submenus from hiding after timeout
Component: Miscellaneous » Code

In my tests, the submenu does disappear as expected if only one dynamic menu is defined, but not if there are several.

goye2cz’s picture

To be sure we're on the same page, I'm talking about after having clicked a menu item, the submenu for that category stays visible while browsing anything in that category. I only have one dynamic menu.

I tried downgrading to the stable version but was unable to access any administration pages for dynamic persistent menu. I'll have to try to recreate my problem in another clean install to be sure.

alberto56’s picture

Hi,

In the 1.x branch, there are no admin pages: one and only one dynamic menu block is active by default and you define the menu and timeout directly in the block config page.

Albert

goye2cz’s picture

I can confirm that after switching to 1.x, the problem remains. Adjusting timeout doesn't affect the problem I described. An interesting thing is that the timeout seems to work properly in both versions I've used.

alberto56’s picture

@goye2cz can you please confirm that I understand your issue correctly:

(1) you have a page a, and page b, and a page c
(2) your menu structure looks like this
-(menu root)
--a
---b
---c

(3) When you are on the home page, b and c become visible only when you hover over a, and stay visible for the period defined by the timeout attribute.
(4) When you navigate to either page b or c, b and c are *always* visible on the dynamic menu.

Does that well describe the problem? If not, can you pleaes provide a link to your website so I can see for myself?

Thanks,

Albert.

goye2cz’s picture

That is in fact what I'm describing. I can imagine it's not really considered a problem. But in my case, I always want the menu to disappear when the mouse isn't hovering it.

What I have right now is only my local test version. If need be, maybe I can load it up on the web.

alberto56’s picture

@goye2cz ok, thanks, I had misunderstood then. I have opened a new issue for your problem: #1365318: one some pages, menu never disappears,

Please follow that one instead,

cheers,

albert