changeset 1837:ddfd8d5fa282

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 27 Feb 2007 11:22:12 +0100
parents 42fb37416fe8 (current diff) 0fc52d861828 (diff)
children e1d4cc010dec
files
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userform.py	Tue Feb 27 11:21:27 2007 +0100
+++ b/MoinMoin/userform.py	Tue Feb 27 11:22:12 2007 +0100
@@ -641,7 +641,7 @@
         hint = _("To create an account, see the %(userprefslink)s page. To recover a lost password, go to %(sendmypasswordlink)s.") % {
                  'userprefslink': userprefslink,
                  'sendmypasswordlink': sendmypasswordlink}
-        self._form = html.FORM(action=action)
+        self._form = html.FORM(action=action, name="loginform")
         self._table = html.TABLE(border="0")
 
         # Use the user interface language and direction
--- a/MoinMoin/widget/browser.py	Tue Feb 27 11:21:27 2007 +0100
+++ b/MoinMoin/widget/browser.py	Tue Feb 27 11:22:12 2007 +0100
@@ -76,6 +76,9 @@
 
         # fill in the empty field we left blank
         unique[1] = self._empty
+        sorted = unique[3:]
+        sorted.sort()
+        unique = unique[:3] + sorted
         return '\n'.join([self._makeoption(item, item == value) for item in unique])
 
     def format(self):
--- a/wiki/htdocs/common/js/common.js	Tue Feb 27 11:21:27 2007 +0100
+++ b/wiki/htdocs/common/js/common.js	Tue Feb 27 11:22:12 2007 +0100
@@ -188,6 +188,11 @@
     // TODO: create separate onload for each type of view and set the
     // 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();