Under settings-> dhtml menu effects-> there is one option: "Go to a page on double click."

How to make it "Go to a page on SINGLE click"...I want to click one time....any ideas? Not two time...

Comments

cburschka’s picture

Category: support » feature
Status: Active » Closed (works as designed)

Um, when you click one time, the menu expands dynamically. That's the point of enabling this module. It can only do one thing at a time, so if a single click already expands the menu , it can't also go to the page. ;)

There are alternatives available, like the "Cloned link" option that puts a static link beneath every menu item. DHTML Menu for Drupal 7 also has several additional features to make static navigation more convenient.

gejo’s picture

I've solved it by modifying "dhtml_menu.js".
Find this code:

    $(li).find('a:first').click(function(e) {
      Drupal.dhtmlMenu.toggleMenu($(li));
      return false;

...and add this line:

    $(li).find('a:first').click(function(e) {
      window.location = this.href;
      Drupal.dhtmlMenu.toggleMenu($(li));
      return false;

..so it will perform both actions.
It seems to work fine for me.

psampaz’s picture

works fine for me too, thanks

NenadP’s picture

Was searching for this too. But now script looks different, targeted method onder which window.location = this.href; is to be applied is now link.click(function(e)

Now i am trying to apply this only to some depth of the sub-links.