Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

wants to merge 1 commit into from

Conversation

willbryant
Copy link

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.

…button's name and value need to be submitted as a hidden input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant