keeping submenus open on click

leruffiant - March 23, 2009 - 21:01
Project:YUI Menu
Version:6.x-1.1-rc1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hey,

I'm trying to keep the submenus open when the parent is clicked, but not succeeding with keepopen: true

another thread on a Yahoo! message board suggested

        var oMenu = new YAHOO.widget.MenuBar(elt);
      
        oMenu.subscribe('click', function (p_sType, p_sArgs) {
            var o = p_sArgs[1].cfg.getProperty("submenu");
            if(o && !o.cfg.getProperty("visible"))
                o.show();         
          }
        );

I have tried to implement this into the yuimenu.module but with no joy.

Anyone?

 
 

Drupal is a registered trademark of Dries Buytaert.