Fixes issue submitting forms with an onsubmit attribute.

jQuery seems to run into trouble using `$.trigger("submit")` on a form with an `onsubmit` attribute. This avoids having to do that for forms without any client-side validation.