mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Updated: Warning when adding a new row when the length doesn't match the known number of columns has been updated to indicate the known columns and what was added. Thanks to Adam Sah for this.
This commit is contained in:
parent
e69815449a
commit
1beb523cc1
3
media/js/jquery.dataTables.js
vendored
3
media/js/jquery.dataTables.js
vendored
@ -2422,7 +2422,8 @@
|
||||
if ( aDataSupplied.length != oSettings.aoColumns.length &&
|
||||
oSettings.iDrawError != oSettings.iDraw )
|
||||
{
|
||||
_fnLog( oSettings, 0, "Added data does not match known number of columns" );
|
||||
_fnLog( oSettings, 0, "Added data (size "+aDataSupplied.length+") does not match known "+
|
||||
"number of columns ("+oSettings.aoColumns.length+")" );
|
||||
oSettings.iDrawError = oSettings.iDraw;
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user