Sfoglia il codice sorgente

Auto focus login, register and password fields

James Allen 12 anni fa
parent
commit
cca50cf64c

+ 2 - 1
services/web/app/views/user/login.jade

@@ -19,7 +19,8 @@ block content
 									required,
 									placeholder='email@example.com',
 									ng-model="email",
-									ng-model-options="{ updateOn: 'blur' }"
+									ng-model-options="{ updateOn: 'blur' }",
+									autofocus
 								)
 								span.small.text-primary(ng-show="loginForm.email.$invalid && loginForm.email.$dirty")
 									| Must be an email address

+ 2 - 1
services/web/app/views/user/passwordReset.jade

@@ -26,7 +26,8 @@ block content
 									name='email',
 									placeholder='email@example.com',
 									required,
-									ng-model="email"
+									ng-model="email",
+									autofocus
 								)
 								span.small.text-primary(
 									ng-show="passwordResetForm.email.$invalid && passwordResetForm.email.$dirty"

+ 2 - 1
services/web/app/views/user/register.jade

@@ -31,7 +31,8 @@ block content
 									required,
 									ng-model="email",
 									ng-init="email = #{JSON.stringify(new_email)}",
-									ng-model-options="{ updateOn: 'blur' }"
+									ng-model-options="{ updateOn: 'blur' }",
+									autofocus
 								)
 								span.small.text-primary(ng-show="registerForm.email.$invalid && registerForm.email.$dirty")
 									| Must be an email address

+ 2 - 1
services/web/app/views/user/setPassword.jade

@@ -26,7 +26,8 @@ block content
 									name='password',
 									placeholder='new password',
 									required,
-									ng-model="password"
+									ng-model="password",
+									autofocus
 								)
 								span.small.text-primary(
 									ng-show="passwordResetForm.password.$invalid && passwordResetForm.password.$dirty"