From a624cda5c59668f1b385f19e1ed42663b22e9a12 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 7 Sep 2012 22:34:43 +0000 Subject: [PATCH] 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 --- wp-admin/js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js index 5dbd487d34..31f8b8f39c 100644 --- a/wp-admin/js/common.js +++ b/wp-admin/js/common.js @@ -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;