1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Fix exampple: Remove rowIndex from select_rows example - not used

Dev: Add comment to rowCallback trigger about undocumented parameters
This commit is contained in:
Allan Jardine 2014-09-08 15:13:59 +01:00
parent 14f5f630c9
commit 4453229416
3 changed files with 6 additions and 4 deletions

View File

@ -1 +1 @@
f75bfb143b4b44d3f9b83fb1a499c2bd35da9e10
f12e6c3f73010d074ca945e1a16712f19af7ec3f

View File

@ -26,7 +26,7 @@ $(document).ready(function() {
"processing": true,
"serverSide": true,
"ajax": "scripts/ids-arrays.php",
"rowCallback": function( row, data, displayIndex ) {
"rowCallback": function( row, data ) {
if ( $.inArray(data.DT_RowId, selected) !== -1 ) {
$(row).addClass('selected');
}
@ -110,7 +110,7 @@ $(document).ready(function() {
"processing": true,
"serverSide": true,
"ajax": "scripts/ids-arrays.php",
"rowCallback": function( row, data, displayIndex ) {
"rowCallback": function( row, data ) {
if ( $.inArray(data.DT_RowId, selected) !== -1 ) {
$(row).addClass('selected');
}

View File

@ -1950,7 +1950,9 @@
}
}
/* Row callback functions - might want to manipulate the row */
// Row callback functions - might want to manipulate the row
// iRowCount and j are not currently documented. Are they at all
// useful?
_fnCallbackFire( oSettings, 'aoRowCallback', null,
[nRow, aoData._aData, iRowCount, j] );