event click instead of hover
bryanrobo - October 3, 2009 - 18:58
| Project: | Accordion Menu |
| Version: | 6.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | accordian menu, jquery menu |
Jump to:
Description
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.

#1
Hey bryanrobo. Fellow robos should help each other out, I always say. :)
On line 168, change
event: 'mouseover'toevent: '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.
#2
This could be a nice option into UI of this module?