Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 418
static Avatar asked Dec 18 '13 14:12

static


1 Answers

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)

like image 70
static Avatar answered Oct 14 '22 22:10

static