mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
Use DOM to focus from Idan Sofer
git-svn-id: http://svn.automattic.com/wordpress/trunk@1445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eedeb9dea1
commit
c5841b82a4
@ -165,7 +165,7 @@ case 'lostpassword':
|
||||
<script type="text/javascript">
|
||||
function focusit() {
|
||||
// focus on first input field
|
||||
document.lostpass.user_login.focus();
|
||||
document.getElementById('user_login').focus();
|
||||
}
|
||||
window.onload = focusit;
|
||||
</script>
|
||||
@ -270,7 +270,7 @@ default:
|
||||
<script type="text/javascript">
|
||||
function focusit() {
|
||||
// focus on first input field
|
||||
document.loginform.log.focus();
|
||||
document.getElementById('log').focus();
|
||||
}
|
||||
window.onload = focusit;
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user