Focus on the password field if the user has come from the default password nag

git-svn-id: http://svn.automattic.com/wordpress/trunk@14171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nbachiyski 2010-04-20 17:16:14 +00:00
parent a8f935789b
commit 7658f0892d
1 changed files with 7 additions and 1 deletions

View File

@ -373,6 +373,12 @@ if ( $show_password_fields ) :
<?php
break;
}
?>
<script type="text/javascript" charset="utf-8">
if (window.location.hash == '#password') {
document.getElementById('pass1').focus();
}
</script>
<?php
include('./admin-footer.php');
?>