Toolbar: sync jQuery and non-jQuery JS behaviour when there's a hash in the url, props tlovett1, fixes #22520
git-svn-id: https://develop.svn.wordpress.org/trunk@22728 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6b22cbcbc7
commit
68be504421
|
@ -69,6 +69,9 @@ if ( typeof(jQuery) != 'undefined' ) {
|
||||||
interval: 100
|
interval: 100
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ( window.location.hash )
|
||||||
|
window.scrollBy( 0, -32 );
|
||||||
|
|
||||||
$('#wp-admin-bar-get-shortlink').click(function(e){
|
$('#wp-admin-bar-get-shortlink').click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$(this).addClass('selected').children('.shortlink-input').blur(function(){
|
$(this).addClass('selected').children('.shortlink-input').blur(function(){
|
||||||
|
|
Loading…
Reference in New Issue