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:
Andrew Ozz 2012-09-07 22:34:43 +00:00
parent a7a925c744
commit a624cda5c5

View File

@ -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;