Don't try to show the submenu when it's visible (Chrome), part props ericlewis, fixes #21832
git-svn-id: https://develop.svn.wordpress.org/trunk@21787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a7a925c744
commit
a624cda5c5
@ -197,9 +197,9 @@ $(document).ready( function() {
|
||||
|
||||
$('li.wp-has-submenu', menu).hoverIntent({
|
||||
over: function(e){
|
||||
var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop;
|
||||
var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop, top = parseInt( m.css('top'), 10 );
|
||||
|
||||
if ( parseInt( m.css('top'), 10 ) > -5 )
|
||||
if ( isNaN(top) || top > -5 ) // meaning the submenu is visible
|
||||
return;
|
||||
|
||||
menutop = $(this).offset().top;
|
||||
|
Loading…
Reference in New Issue
Block a user