[Forms] Tie OK button to validation

Enable/disable the confirmation button in overlay dialogs
such that it is only enabled when the included form is
valid. WTD-593.
This commit is contained in:
Victor Woeltjen 2014-12-03 14:08:37 -08:00
parent 1753aa6784
commit 3d95c8b744

View File

@ -19,7 +19,10 @@
</div>
</div>
<div class="abs bottom-bar">
<a class='btn lg major' href='' ng-click="ngModel.confirm()">
<a class='btn lg major'
href=''
ng-class="{ disabled: !createForm.$valid }"
ng-click="ngModel.confirm()">
OK
</a>
<a class='btn lg subtle' href='' ng-click="ngModel.cancel()">