Make WordPress Core

Changeset 21787


Ignore:
Timestamp:
09/07/2012 10:34:43 PM (11 years ago)
Author:
azaozz
Message:

Don't try to show the submenu when it's visible (Chrome), part props ericlewis, fixes #21832

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/common.js

    r21592 r21787  
    198198    $('li.wp-has-submenu', menu).hoverIntent({
    199199        over: function(e){
    200             var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop;
    201 
    202             if ( parseInt( m.css('top'), 10 ) > -5 )
     200            var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop, top = parseInt( m.css('top'), 10 );
     201
     202            if ( isNaN(top) || top > -5 ) // meaning the submenu is visible
    203203                return;
    204204
Note: See TracChangeset for help on using the changeset viewer.