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

Patching the .editable submit method to allow programmatic submit #69

Open
adamico opened this issue Jan 12, 2016 · 1 comment
Open

Comments

@adamico
Copy link
Contributor

adamico commented Jan 12, 2016

I've stumbled upon an annoying issue when I try to write integration tests with Rspec & Capybara to simulate filling in a text area with x-editable.

While I can set the value with the x-editable setValue() method:

$('.editable').editable('setValue', 'foobar')

When I try submitting the form with the submit() method:

$('.editable').editable('submit')

the patched .save from https://github.com/werein/x-editable-rails/blob/master/vendor/assets/javascripts/editable/rails/editable_form.js.coffee is not called.

I'd try submitting a fix, but it's beyond my current skills :(

@macpeluso
Copy link

I have this same issue... I've changed 'post' everywhere to 'put', but nothing works.

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

No branches or pull requests

2 participants