Navigation to close when hovering another page in nav
Permalink Browser Info Environment
So right now I have few pages under "Palvelut" and hovering opens the menu just like I would like it to, but problem is that the menu is stuck there unless I move the cursor outside the whole menu area, I would like it to close when I hover over any other page, like "Etusivu", "Referenssit", etc. Also this behavior on the menu causes annoying thing to happen on the "Palvelut" page, once you hover the "Palvelut" there the menu is stuck open.
http://roihuinc.fi/ASIAKKAAT/hippocampus/...
http://roihuinc.fi/ASIAKKAAT/hippocampus/...
Type: | Discussion |
---|---|
Status: | New |
Can someone at least point to the right direction where the navigation opening javascript is handled. I know that "$.boxNav.close()" closes the navigation, but I cant find anything other mentioning "boxNav" in the (blocks->autonav->templates->super_mint.php).
Finally found it! "packages/theme_super_mint/themes/super_mint/js/jquery.boxnav.js"
Replaced the javascript on line 133 with this:
So now the navigation closes when you hover on a page that has no children.
Replaced the javascript on line 133 with this:
// Si le panneau ne contient pas d'enfant On laisse le lien actif if (!nav.active.pane.children().size()) { $.boxNav.close(); }
So now the navigation closes when you hover on a page that has no children.