Toolbar: Restore scroll-to-top functionality.

H/t Ipstenu.
Introduced in [33056].

See #29906.


Built from https://develop.svn.wordpress.org/trunk@33334


git-svn-id: http://core.svn.wordpress.org/trunk@33306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2015-07-20 20:02:24 +00:00
parent 0ccb9c47cb
commit f9c88fcb5c
3 changed files with 5 additions and 8 deletions

View File

@ -129,17 +129,14 @@ if ( typeof(jQuery) != 'undefined' ) {
target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh);
});
$('#wpadminbar').click( function(e) {
adminbar.click( function(e) {
if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' ) {
return;
} else {
adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' );
e.stopPropagation();
return;
}
adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' );
$( 'html, body' ).animate( { scrollTop: 0 }, 'fast' );
e.preventDefault();
$('html, body').animate({ scrollTop: 0 }, 'fast');
});
// fix focus bug in WebKit

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta3-33333';
$wp_version = '4.3-beta3-33334';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.