rails/rails — Issue #3905: Disable client side validate when clicking a button marked with formnovalidate
Author: stormuk
Created: 2011-12-08 12:13:53+00:00
State: open

Currently the UJS file is checking for novalidate on the form, but does not take into account formnovalidate on the submit button. See http://www.w3schools.com/html5/att_input_formnovalidate.asp

This is from ~line 331 in jquery_ujs.js

```javascript
if (blankRequiredInputs && form.attr("novalidate") == undefined && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
return rails.stopEverything(e);
}
```

It needs another check to see whether the event source has the formnovalidate attribute set