From d0988dc33088b8aedb6e4b3ae2636b13c0d744f5 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sun, 5 May 2013 18:42:28 -0400 Subject: added auto-focus to the registration page --- askbot/templates/authopenid/complete.html | 3 +++ askbot/utils/forms.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/askbot/templates/authopenid/complete.html b/askbot/templates/authopenid/complete.html index 835fd72f..becd1517 100644 --- a/askbot/templates/authopenid/complete.html +++ b/askbot/templates/authopenid/complete.html @@ -76,5 +76,8 @@ anyone, must be valid) {% endblock %} {% block endjs %} + {{ macros.one_shot_form_js(form='#register-form', submit_button='#register-button') }} {% endblock %} diff --git a/askbot/utils/forms.py b/askbot/utils/forms.py index c799ff56..9ff50506 100644 --- a/askbot/utils/forms.py +++ b/askbot/utils/forms.py @@ -121,7 +121,7 @@ class UserNameField(StrippedNonEmptyCharField): max_length = MAX_USERNAME_LENGTH() super(UserNameField,self).__init__( max_length=max_length, - widget=forms.TextInput(attrs=login_form_widget_attrs), + widget=forms.TextInput(attrs=widget_attrs), label=label, error_messages=error_messages, **kw -- cgit v1.2.3-1-g7c22