You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/08/25 13:33:57 UTC
[37/42] git commit: [#7635] add autofocus to login form
[#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/1d151d42
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/1d151d42
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/1d151d42
Branch: refs/heads/je/42cc_7585
Commit: 1d151d423f97d9ff277f72a10d05e482305a7be9
Parents: b1499eb
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Thu Aug 21 20:35:34 2014 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Fri Aug 22 09:05:01 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/1d151d42/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 3bb51a2..2041e4d 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',