[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:
@@ -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()">
|
||||
|
||||
Reference in New Issue
Block a user