You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/08/21 22:35:45 UTC
git commit: [#7635] add autofocus to login form
Repository: allura
Updated Branches:
refs/heads/db/7635 [created] c23506c54
[#7635] add autofocus to login form
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/c23506c5
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/c23506c5
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/c23506c5
Branch: refs/heads/db/7635
Commit: c23506c54c724685b9b50dc56805f37a8578e1a0
Parents: d354848
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Thu Aug 21 20:35:34 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu Aug 21 20:35:34 2014 +0000
----------------------------------------------------------------------
Allura/allura/lib/widgets/auth_widgets.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/c23506c5/Allura/allura/lib/widgets/auth_widgets.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/auth_widgets.py b/Allura/allura/lib/widgets/auth_widgets.py
index 3f3d66a..7009175 100644
--- a/Allura/allura/lib/widgets/auth_widgets.py
+++ b/Allura/allura/lib/widgets/auth_widgets.py
@@ -36,7 +36,9 @@ class LoginForm(ForgeForm):
@property
def fields(self):
fields = [
- ew.TextField(name='username', label='Username'),
+ ew.TextField(name='username', label='Username', attrs={
+ 'autofocus': 'autofocus',
+ }),
ew.PasswordField(name='password', label='Password'),
ew.Checkbox(
name='rememberme',