changeset 234:f6e023768f35

remove javascript focus setting for login form (a recent browser will use html5 autofocus attribute)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 15 May 2011 18:06:46 +0200
parents 8bfab90d4621
children 187a36c04c59 e0343315d68c
files MoinMoin/static/js/common.js
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/js/common.js	Sun May 15 15:29:37 2011 +0200
+++ b/MoinMoin/static/js/common.js	Sun May 15 18:06:46 2011 +0200
@@ -186,11 +186,6 @@
     // correct function name in the html.
     // e.g <body onlod='editor_onload()'>
 
-    // login focus
-    if (document.forms['loginform']) {
-        document.forms['loginform'].elements['name'].focus();
-    }
-
     // Page view stuff
     update_edit_links();
     add_gui_editor_links();