jeditable: enter is not pressing, editings are not saving
jeditable: enter is not pressing, editings are not saving
Hello! In my scenaro I want client side only editing capabilities.
I have a code as in a sample:
$('td', config.recordDataTable.fnGetNodes()).editable('../examples_support/editable_ajax.php', {
"callback": function (sValue, y) {
var aPos = config.recordDataTable.fnGetPosition(this);
config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);
},
"submitdata": function (value, settings) {
var aPos = config.recordDataTable.fnGetPosition(this);
config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);
return {
"row_id": this.parentNode.getAttribute('id'),
"column": config.recordDataTable.fnGetPosition(this)[2]
};
},
"height": "14px"
});
all cells are editable. But after i finish editing the text and press enter button nothing happens - i'm still in the editing mode! When i click aside the cell, cell data is as it was before "editing".
I have a code as in a sample:
$('td', config.recordDataTable.fnGetNodes()).editable('../examples_support/editable_ajax.php', {
"callback": function (sValue, y) {
var aPos = config.recordDataTable.fnGetPosition(this);
config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);
},
"submitdata": function (value, settings) {
var aPos = config.recordDataTable.fnGetPosition(this);
config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);
return {
"row_id": this.parentNode.getAttribute('id'),
"column": config.recordDataTable.fnGetPosition(this)[2]
};
},
"height": "14px"
});
all cells are editable. But after i finish editing the text and press enter button nothing happens - i'm still in the editing mode! When i click aside the cell, cell data is as it was before "editing".
This discussion has been closed.
Replies
May be someone could explain whats wrong with it?
[code]"submitdata": function (value, settings) {
var aPos = config.recordDataTable.fnGetPosition(this);
config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);[/code]
(value, settings) must be (sValue, settings).
regards