if there is a validation error re enable the button

This commit is contained in:
Henry Oswald 2015-01-29 13:56:19 +00:00
parent bebe94a128
commit 69c3f48c1e

View file

@ -81,6 +81,7 @@ define [
completeSubscription = (err, recurly_token_id) ->
$scope.validation.errorFields = {}
if err?
$scope.processing = false
$scope.genericError = err.message
_.each err.fields, (field)-> $scope.validation.errorFields[field] = true
else