0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

set reset-password button disabled while submitting form

This commit is contained in:
1Pete 2015-02-13 06:16:18 +07:00
parent f073e10221
commit 69f9cc5192
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ var ResetController = Ember.Controller.extend(ValidationEngine, {
newPassword: '',
ne2Password: '',
token: '',
submitButtonDisabled: false,
submitting: false,
validationType: 'reset',

View file

@ -6,6 +6,6 @@
<div class="password-wrap">
{{input value=ne2Password class="password" type="password" placeholder="Confirm Password" name="ne2password" }}
</div>
<button class="btn btn-blue" type="submit" {{bind-attr disabled='submitButtonDisabled'}}>Reset Password</button>
<button class="btn btn-blue" type="submit" {{bind-attr disabled='submitting'}}>Reset Password</button>
</form>
</section>