Commit 186e2b69 authored by Randall Leeds's avatar Randall Leeds

fix #270: prevent invalid form submissions

parent c211025f
......@@ -98,6 +98,7 @@ class App
annotator.show()
$scope.submit = (form) ->
return unless form.$valid
params = for name, control of form when control.$modelValue?
[name, control.$modelValue]
params.push ['__formid__', form.$name]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment