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:
parent
0ccb9c47cb
commit
f9c88fcb5c
|
@ -129,17 +129,14 @@ if ( typeof(jQuery) != 'undefined' ) {
|
||||||
target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh);
|
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' ) {
|
if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' ) {
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' );
|
|
||||||
e.stopPropagation();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
e.preventDefault();
|
adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' );
|
||||||
$( 'html, body' ).animate( { scrollTop: 0 }, 'fast' );
|
$( 'html, body' ).animate( { scrollTop: 0 }, 'fast' );
|
||||||
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
// fix focus bug in WebKit
|
// fix focus bug in WebKit
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue