prototype-rails icon indicating copy to clipboard operation
prototype-rails copied to clipboard

Fix button name submission when using the "disable-with" feature

Open willbryant opened this issue 12 years ago • 0 comments

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.

willbryant avatar Dec 02 '12 05:12 willbryant