prototype-rails
prototype-rails copied to clipboard
Fix button name submission when using the "disable-with" feature
In Rails 2.2 a fix was put in for the case when a button has disable-with set: the library needs to add a hidden form field with the same name and value as the button had, because disabled form elements aren't included in the serialized form contents.
This fix was lost in the prototype-rails extraction. This patch adds it back.
We've been using it for the last year and it merges cleanly to master still.