Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We had a request to shorten the wait time before the menu pops open. Unfortunately we had to hard code the change to the JS file.
It would be great if the megamenu configuration allowed the configuration of these JS values under an advanced fieldset, and submitted these as arguments when the JS is called.
Comment | File | Size | Author |
---|---|---|---|
#7 | Screenshot: D7 Megamenu [advanced settings] | 18.82 KB | mattez |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedGreat idea.
Comment #2
jtchem CreditAttribution: jtchem commentedwhich variable did you have to adjust to shorten the wait time? I have had the same request and nothing I have changed seems to have had any effect....
Thanks
Comment #3
Grayside CreditAttribution: Grayside commentedLine 4 or 5 of megamenu.js. Either sizewait or hoverwait... I don't recall.
Remember, after you make this change you need to be sure any javascript cache is refreshed.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
BenK CreditAttribution: BenK commentedSubscribing
Comment #6
mattez CreditAttribution: mattez commented+1 Subscribing
Comment #7
mattez CreditAttribution: mattez commentedI've got D7 version, and there you can setup it in "admin/config/user-interface/megamenu" there are "Advanced Settings"...
You can setup there "Menu Timeout", "Menu Size Wait" and "Menu Hover Wait". See attached scrshot.