Changeset 33334
- Timestamp:
- 07/20/2015 08:01:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/admin-bar.js
r33056 r33334 130 130 }); 131 131 132 $('#wpadminbar').click( function(e) {132 adminbar.click( function(e) { 133 133 if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' ) { 134 134 return; 135 } else { 136 adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' ); 137 e.stopPropagation(); 138 return; 139 } 140 135 } 136 137 adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' ); 138 $( 'html, body' ).animate( { scrollTop: 0 }, 'fast' ); 141 139 e.preventDefault(); 142 $('html, body').animate({ scrollTop: 0 }, 'fast');143 140 }); 144 141
Note: See TracChangeset
for help on using the changeset viewer.