jenkinsci/jenkins — pull request #1111 by ikedam (2014-02-02 04:48:53+00:00)
Title: [JENKINS-21613] f:combobox may break form.onsubmit

f:combobox prevents form submission when the dropdown is open.
This is done by interrupting form.onsubmit.
It handles form.onsubmit in the following way:

1. ComboBox saves the original onsubmit handler in its initialization.
2. When the combobox is selected, it shows the dropdown and overwrites the onsubmit handler. The ovirridden onsubmit prevents form submission of the dropdown is open.
3. When the dropdown is closed, recovers the saved form.onsubmit.

If the form.onsubmit was overridden between step 1 and 2, it would be overridden in step 3 and lost.

This change saves the original onsubmit handler just before overriding it.