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:
parent
0656bbd3ab
commit
cddc116653
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue