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:
parent
14f5f630c9
commit
4453229416
@ -1 +1 @@
|
||||
f75bfb143b4b44d3f9b83fb1a499c2bd35da9e10
|
||||
f12e6c3f73010d074ca945e1a16712f19af7ec3f
|
||||
|
@ -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');
|
||||
}
|
||||
|
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -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] );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user