diff --git a/.datatables-commit-sync b/.datatables-commit-sync index ec2dc8d4..c3a68ed5 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -ab58e914ab0fb157ed2efd6edb1cff5c2b7f5bee +605d941151924eed1f404fde499b05cc9671f1f8 diff --git a/examples/server_side/row_details.html b/examples/server_side/row_details.html index b0f5f46d..75c36a51 100644 --- a/examples/server_side/row_details.html +++ b/examples/server_side/row_details.html @@ -56,7 +56,7 @@ $(document).ready(function() { // Array to track the ids of the details displayed rows var detailRows = []; - $('#example tbody').on( 'click', 'tr td:first-child', function () { + $('#example tbody').on( 'click', 'tr td.details-control', function () { var tr = $(this).closest('tr'); var row = dt.row( tr ); var idx = $.inArray( tr.attr('id'), detailRows ); @@ -82,7 +82,7 @@ $(document).ready(function() { // On each draw, loop over the `detailRows` array and show any child rows dt.on( 'draw', function () { $.each( detailRows, function ( i, id ) { - $('#'+id+' td:first-child').trigger( 'click' ); + $('#'+id+' td.details-control').trigger( 'click' ); } ); } ); } ); @@ -177,7 +177,7 @@ $(document).ready(function() { // Array to track the ids of the details displayed rows var detailRows = []; - $('#example tbody').on( 'click', 'tr td:first-child', function () { + $('#example tbody').on( 'click', 'tr td.details-control', function () { var tr = $(this).closest('tr'); var row = dt.row( tr ); var idx = $.inArray( tr.attr('id'), detailRows ); @@ -203,7 +203,7 @@ $(document).ready(function() { // On each draw, loop over the `detailRows` array and show any child rows dt.on( 'draw', function () { $.each( detailRows, function ( i, id ) { - $('#'+id+' td:first-child').trigger( 'click' ); + $('#'+id+' td.details-control').trigger( 'click' ); } ); } ); } );