Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
[*] MO: Refactor out a bindOnHoverMenu fucntion for readibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gskema committed Jun 9, 2016
1 parent 181834c commit 43e09b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/cttopmenu/views/js/fo.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ $(function() {
// Option: show dropdowns on mouse enter
// @TODO This functionality is experimental and may contain bugs. Bootstrap does not support hover dropdowns.
if (useHover) {
bindOnHoverMenu();
}

// Binds all the necessary events handlers for the menu dropdowns to work with hover events
function bindOnHoverMenu() {
var $linksToggle = $links.filter('.dropdown-toggle');
var $dropdowns = $menu.find('.dropdown');

Expand Down

0 comments on commit 43e09b1

Please sign in to comment.