Ticket #29422: 29422.2.patch
File 29422.2.patch, 858 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/admin-bar.js
91 91 if ( e.which != 13 ) 92 92 return; 93 93 94 var target = $(e.target), wrap = target.closest('ab-sub-wrapper'); 94 var target = $(e.target), 95 wrap = target.closest('.ab-sub-wrapper'), 96 parentHasHover = target.parent().hasClass('hover'); 95 97 96 98 e.stopPropagation(); 97 99 e.preventDefault(); … … 100 102 wrap = $('#wpadminbar .quicklinks'); 101 103 102 104 wrap.find('.menupop').removeClass('hover'); 103 target.parent().toggleClass('hover'); 105 106 if ( !parentHasHover ) 107 target.parent().toggleClass('hover'); 108 104 109 target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh); 105 110 }).each(refresh); 106 111