how do i change the mouse event that triggers the accordian menu. It now triggers on mouse hover, I would like it to trigger on mouse click. My javascript knowledge is very limited.

Comments

robobeau’s picture

Hey bryanrobo. Fellow robos should help each other out, I always say. :)

On line 168, change event: 'mouseover' to event: 'click'

BE WARNED: Doing this will make it so the link that activates the accordion menu is USELESS. Won't go anywhere. To make it activate the accordion menu AND have the link go somewhere, use event: 'mousedown'.

Having 'mousedown' in this case is rather useless, if you ask me, though.

matteoraggi’s picture

This could be a nice option into UI of this module?

solotandem’s picture

Version: 6.x-1.0 » 6.x-1.1
Assigned: Unassigned » solotandem
Status: Active » Fixed

Version 6.x-1.1 includes settings for scope and all jQuery accordion options.

Status: Fixed » Closed (fixed)
Issue tags: -jquery menu, -accordian menu

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Issue summary: View changes
Issue tags: -jquery menu, -accordian menu +accordion