static
static

Reputation: 8386

Why X-editable does not send AJAX request to send the modified data?

I embedded the x-editable:

in the html:

<a class='doc_title editable' id='doc_title_12345' data-name="doc[title]" data-title="Enter doc title" data-type="text" data-url='/docs/12345' href='#doc_title_12345'>My Document<a>

in the js:

// turn to inline mode
$.fn.editable.defaults.mode = 'inline';

// turn on editable on title
$('.doc_title.editable').editable();

I can edit in browser, but when I click on save nothing happens (I mean I see the new value, but it does not send via AJAX request to the server)

What could be wrong?

Upvotes: 6

Views: 3889

Answers (1)

static
static

Reputation: 8386

As here mentioned it is required to add the always parameter:

$('.username').editable({
    send: 'always'
});

I didn't find it in the documentation (in the Getting started)

Upvotes: 9

Related Questions