vitalets/bootstrap-editable — pull request #53 by STRML (2012-11-16 17:30:26+00:00)
Title: Allow users to set a custom send method

While integrating bootstrap-editable into a backbone project, I found it very restrictive in terms of how it syncs to your backend server. Not everyone can or wants to accept a POST with the params pk, name, and value.

I added the option 'sendMethod', which, if defined && a function, overrides the $.ajax call in Editable.send.

This allows me to reuse my existing sync methods and write code like:

```
this.$el.find(".list-btn a").editable({
name: "ShortListName",
sendMethod: function(params){
var shortList = me.lists.get(params.pk);
shortList.rename(params.value);
}
});
```