Use Angular 1.30 and only update emails on blur

This commit is contained in:
James Allen 2014-07-09 14:53:30 +01:00
parent f6c2feff2d
commit f2066e46dd
4 changed files with 7 additions and 4 deletions

View file

@ -31,7 +31,7 @@ html(itemscope, itemtype='http://schema.org/Product')
window.csrfToken = "#{csrfToken}";
script(src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js")
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js")
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.14/angular.min.js")
body
- if(typeof(suppressNavbar) == "undefined")

View file

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

View file

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

View file

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