Fix description of fnDataUpdate plug-in method.

pull/19/head
Allan Jardine 12 years ago
parent 1bc8d6cdcd
commit 9d8562e3c8

@ -1,8 +1,8 @@
/** /**
* Update the internal data for a TR element based on what is used in the * Update the internal data for a TR element based on what is used in the
* DOM. You will likely want to call fnDraw() after this function. * DOM. You will likely want to call fnDraw() after this function.
* @name fnColumnIndexToVisible * @name fnDataUpdate
* @anchor fnColumnIndexToVisible * @anchor fnDataUpdate
* @author Lior Gerson * @author Lior Gerson
* *
* @example * @example
@ -12,7 +12,7 @@
$.fn.dataTableExt.oApi.fnDataUpdate = function ( oSettings, nRowObject, iRowIndex ) $.fn.dataTableExt.oApi.fnDataUpdate = function ( oSettings, nRowObject, iRowIndex )
{ {
$(nRowObject).find("TD").each( function(i) { $(nRowObject).find("TD").each( function(i) {
var iColIndex = oSettings.oApi._fnVisibleToColumnIndex( oSettings, i ); var iColIndex = oSettings.oApi._fnVisibleToColumnIndex( oSettings, i );
oSettings.oApi._fnSetCellData( oSettings, iRowIndex, iColIndex, $(this).html() ); oSettings.oApi._fnSetCellData( oSettings, iRowIndex, iColIndex, $(this).html() );
} ); } );
}; };

Loading…
Cancel
Save