mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Updated: Modify the editable example to give the column information as well as row to the server.
This commit is contained in:
parent
7f04b7ffb5
commit
693eb5044a
@ -24,7 +24,10 @@
|
||||
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
|
||||
},
|
||||
"submitdata": function ( value, settings ) {
|
||||
return { "row_id": this.parentNode.getAttribute('id') };
|
||||
return {
|
||||
"row_id": this.parentNode.getAttribute('id'),
|
||||
"column": oTable.fnGetPosition( this )[2]
|
||||
};
|
||||
},
|
||||
"height": "14px"
|
||||
} );
|
||||
@ -487,7 +490,10 @@
|
||||
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
|
||||
},
|
||||
"submitdata": function ( value, settings ) {
|
||||
return { "row_id": this.parentNode.getAttribute('id') };
|
||||
return {
|
||||
"row_id": this.parentNode.getAttribute('id'),
|
||||
"column": oTable.fnGetPosition( this )[2]
|
||||
};
|
||||
},
|
||||
"height": "14px"
|
||||
} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user