Update account-settings.htm

add form.$valid && on submit ng-click
This commit is contained in:
yhua123 2016-07-06 14:23:59 +08:00 committed by GitHub
parent f70b9f7e33
commit c5a26cdd64

View File

@ -54,7 +54,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-md-offset-7 col-md-10"> <div class="col-md-offset-7 col-md-10">
<input type="submit" class="btn btn-primary" ng-click="vm.updateUser(user)" value="// 'save' | tr //"> <input type="submit" class="btn btn-primary" ng-click="form.$valid && vm.updateUser(user)" value="// 'save' | tr //">
<input type="button" class="btn btn-default" ng-click="vm.cancel(form)" value="// 'cancel' | tr //"> <input type="button" class="btn btn-default" ng-click="vm.cancel(form)" value="// 'cancel' | tr //">
</div> </div>
</div> </div>
@ -66,4 +66,4 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>