alphagov/maslow — pull request #100 by tekin (2014-04-08 12:00:45+00:00)
Title: Capture enter when adding additional criteria

Hitting return when adding additional criteria results in the browser submitting the form using the first button. In this case, that is the delete button of the first criteria, which results in the first criteria being deleted because the criteria_action param is not present. This commit adds some javascript to capture carriage returns on the need criteria inputs and submit the form using the correct button.