mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-19 17:54:14 +01:00
Update editable example to use $ API method
This commit is contained in:
parent
5a506746bb
commit
5088e48b80
@ -18,7 +18,7 @@
|
||||
var oTable = $('#example').dataTable();
|
||||
|
||||
/* Apply the jEditable handlers to the table */
|
||||
$('td', oTable.fnGetNodes()).editable( '../examples_support/editable_ajax.php', {
|
||||
oTable.$('td').editable( '../examples_support/editable_ajax.php', {
|
||||
"callback": function( sValue, y ) {
|
||||
var aPos = oTable.fnGetPosition( this );
|
||||
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
|
||||
@ -484,7 +484,7 @@
|
||||
var oTable = $('#example').dataTable();
|
||||
|
||||
/* Apply the jEditable handlers to the table */
|
||||
$('td', oTable.fnGetNodes()).editable( '../examples_support/editable_ajax.php', {
|
||||
oTable.$('td').editable( '../examples_support/editable_ajax.php', {
|
||||
"callback": function( sValue, y ) {
|
||||
var aPos = oTable.fnGetPosition( this );
|
||||
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
|
||||
|
Loading…
x
Reference in New Issue
Block a user