dataTables + jeditable (value not sticking)
dataTables + jeditable (value not sticking)
willtx
Posts: 5Questions: 0Answers: 0
I think this is probably more a jeditable issue but I'm hoping someone has come across this already. On the blur event the value is passed to a function versus a server call but the changed value isn't sticking.
sample: http://jsfiddle.net/willtx/FTgs9/4/
jeditable doc: http://www.appelsiini.net/projects/jeditable
[code]$('.editable').editable(function(value, settings) {
console.log(this);
console.log(value);
console.log(settings);
return(value);
}, {
type : 'textarea',
submit : 'OK',
});[/code]
sample: http://jsfiddle.net/willtx/FTgs9/4/
jeditable doc: http://www.appelsiini.net/projects/jeditable
[code]$('.editable').editable(function(value, settings) {
console.log(this);
console.log(value);
console.log(settings);
return(value);
}, {
type : 'textarea',
submit : 'OK',
});[/code]
This discussion has been closed.
Replies
[code]
function MakeEditable() {
$("#STRTable").dataTable().$('td:eq(2)').editable(function(value, settings) {
//do nothing, no serverside call
return value;
},
{
type: 'text',
submit: '',
cancel: '',
tooltip: 'Click to Edit',
onblur: "submit"
});
};
[/code]