includes/clientside/static/login.js
changeset 816 44b8446533e1
parent 811 5c807fe77020
child 824 28d9fbcd4f0d
--- 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 )