Make WordPress Core

Ticket #29906: 29906-2.diff

File 29906-2.diff, 698 bytes (added by seanchayes, 10 years ago)
  • wp-includes/js/admin-bar.js

     
    124124                });
    125125
    126126                $('#wpadminbar').click( function(e) {
    127                         if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' )
    128                                 return;
     127                        if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' ) {
     128                return;
     129            } else {
     130                adminbar.find('li.menupop.hover').removeClass('hover');
     131                return;
     132            }
    129133
    130134                        e.preventDefault();
    131135                        $('html, body').animate({ scrollTop: 0 }, 'fast');