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
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

robobeau - October 29, 2009 - 13:42

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.

#2

matteoraggi - November 8, 2009 - 16:50

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

 
 

Drupal is a registered trademark of Dries Buytaert.