Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Degrading possible? #11

Open
ryanlecompte opened this issue Aug 8, 2011 · 2 comments
Open

Degrading possible? #11

ryanlecompte opened this issue Aug 8, 2011 · 2 comments
Labels

Comments

@ryanlecompte
Copy link

Hello,

When using jeditable-rails, is there a fairly easy way to degrade properly in the case where Javascript isn't available? In other words, if JS isn't available, simply go back to a standard form / submit button for editing?

Thanks!

Ryan

@afeld
Copy link
Owner

afeld commented Aug 8, 2011

No, there isn't built-in support for it - would you expect there to be a separate form and submit button for every field? What element would all of your html_options get applied to?

If you would like to take a crack at it, I would be happy to merge it in, but I'm not sure what the ideal behavior would be.

@ryanlecompte
Copy link
Author

Thanks for responding! I guess it would be ideal to degrade somehow to just
normal input fields and then a single "submit" button to submit all the
values. Not sure how that work, it seems like you'd need to detect whether
or not JS is available on the client to know to create the submit button or
not. I'll give it some more thought for my particular use case.

Feel free to close this pull request.

Thanks!

On Mon, Aug 8, 2011 at 6:19 PM, afeld <
[email protected]>wrote:

No, there isn't built-in support for it - would you expect there to be a
separate form and submit button for every field? What element would all of
your html_options get applied to?

If you would like to take a crack at it, I would be happy to merge it in,
but I'm not sure what the ideal behavior would be.

Reply to this email directly or view it on GitHub:
#11 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants