alphagov/publisher — pull request #299 by fofr (2014-11-17 17:11:45+00:00)
Title: Avoid submitting business support form with JS

Fixes https://www.agileplannerapp.com/boards/173808/cards/7908

The update action for an edition relies on the value of the commit button submitted with the form. By intercepting the form submit and resubmitting after a DOM modification (which only happens on business support) we lose that context.

* Don’t prevent default and avoid submitting form with JS
* Instead let the event bubble up and perform its default action, submitting the form as the user originally intended
* Include comment to note that this is intentional

(This only seemed to be a problem within Firefox)