mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Auto focus login, register and password fields
This commit is contained in:
parent
96e99a5cc0
commit
cca50cf64c
4 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue