Toolbar: sync jQuery and non-jQuery JS behaviour when there's a hash in the url, props tlovett1, fixes #22520

git-svn-id: http://core.svn.wordpress.org/trunk@22728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2012-11-20 20:45:03 +00:00
parent 0656bbd3ab
commit cddc116653
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ if ( typeof(jQuery) != 'undefined' ) {
interval: 100
});
if ( window.location.hash )
window.scrollBy( 0, -32 );
$('#wp-admin-bar-get-shortlink').click(function(e){
e.preventDefault();
$(this).addClass('selected').children('.shortlink-input').blur(function(){