# HG changeset patch # User Dan # Date 1232129648 18000 # Node ID 44b8446533e163919430ccb9b10be3f4602e86ea # Parent c2b3b1464224ca0ebd2399d1255db211ee591792 Fixed login form being focused too early (caused page to scroll up) diff -r c2b3b1464224 -r 44b8446533e1 includes/clientside/static/login.js --- a/includes/clientside/static/login.js Fri Jan 16 13:13:37 2009 -0500 +++ b/includes/clientside/static/login.js Fri Jan 16 13:14:08 2009 -0500 @@ -709,24 +709,14 @@ logindata.mb_inner.appendChild(div); // Post operations: field focus - if ( IE ) - { - setTimeout( - function() - { - if ( logindata.loggedin_username ) - document.getElementById('ajax_login_field_password').focus(); - else - document.getElementById('ajax_login_field_username').focus(); - }, 200); - } - else - { - if ( data.username ) - f_password.focus(); - else - f_username.focus(); - } + setTimeout( + function() + { + if ( logindata.loggedin_username ) + document.getElementById('ajax_login_field_password').focus(); + else + document.getElementById('ajax_login_field_username').focus(); + }, 750); // Post operations: show captcha window if ( show_captcha )