Chad Jolly

Results 2 issues of Chad Jolly

prototype-ujs expects that the `data-confirm` be on the form element rather than the submit button. `button_to` helper in rails adds it to the submit input. As well, I believe the...

follow [jquery-rails](https://github.com/rails/jquery-rails/blob/master/vendor/assets/javascripts/jquery_ujs.js#L291) lead and add a slight timeout before disabling submit buttons during non-ajax form submissions to ensure submit button's name included in payload