Merge pull request #375 from ZogStriP/autofocus-login

autofocus the login input in the login modal
This commit is contained in:
Robin Ward 2013-03-06 09:17:10 -08:00
commit 610be79061
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@
<label for='login-account-name'>{{i18n login.username}}&nbsp;</label>
</td>
<td>
{{view Discourse.TextField valueBinding="view.loginName" placeholderKey="login.email_placeholder" elementId="login-account-name" autocorrect="off" autocapitalize="off"}}
{{view Discourse.TextField valueBinding="view.loginName" placeholderKey="login.email_placeholder" elementId="login-account-name" autocorrect="off" autocapitalize="off" autofocus="autofocus"}}
</td>
<tr>
<td>

View File

@ -7,7 +7,7 @@
@module Discourse
**/
Discourse.TextField = Ember.TextField.extend({
attributeBindings: ['autocorrect', 'autocapitalize'],
attributeBindings: ['autocorrect', 'autocapitalize', 'autofocus'],
placeholder: (function() {
return Em.String.i18n(this.get('placeholderKey'));