mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Fix: fnGetData returning all rows when trying to get row 0
This commit is contained in:
parent
7ae342dc7d
commit
25d5ab4bed
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -5365,7 +5365,7 @@
|
|||||||
{
|
{
|
||||||
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
||||||
|
|
||||||
if ( mRow )
|
if ( mRow !== undefined )
|
||||||
{
|
{
|
||||||
var iRow = (typeof mRow === 'object') ?
|
var iRow = (typeof mRow === 'object') ?
|
||||||
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
||||||
|
@ -626,7 +626,7 @@ this.fnGetData = function( mRow, iCol )
|
|||||||
{
|
{
|
||||||
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
||||||
|
|
||||||
if ( mRow )
|
if ( mRow !== undefined )
|
||||||
{
|
{
|
||||||
var iRow = (typeof mRow === 'object') ?
|
var iRow = (typeof mRow === 'object') ?
|
||||||
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user