Template:Team:Bonn:MenuJS
From 2013.igem.org
(Difference between revisions)
Line 182: | Line 182: | ||
applyHandlers = function($menu,o) { | applyHandlers = function($menu,o) { | ||
var targets = 'li:has(' + o.popUpSelector + ')'; | var targets = 'li:has(' + o.popUpSelector + ')'; | ||
- | if ($.fn.hoverIntent | + | if ($.fn.hoverIntent) |
+ | if (!o.disableHI) { | ||
$menu.hoverIntent(over, out, targets); | $menu.hoverIntent(over, out, targets); | ||
} | } | ||
Line 206: | Line 207: | ||
$ul = $this.siblings(e.data.popUpSelector); | $ul = $this.siblings(e.data.popUpSelector); | ||
- | if ($ul.length > 0 | + | if ($ul.length > 0) |
+ | if ($ul.is(':hidden')) { | ||
$this.one('click.superfish', false); | $this.one('click.superfish', false); | ||
if (e.type === 'MSPointerDown') { | if (e.type === 'MSPointerDown') { |
Revision as of 07:58, 4 October 2013