mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
Fix examples: Uuse a more selective operator for the class control in row details examples
* This fixes DataTables/DataTables #336
This commit is contained in:
parent
3ea905201b
commit
56f59a3a33
@ -1 +1 @@
|
||||
f07529f7ddf780f9668356727be62df70b3da153
|
||||
364c94508853cf57e9af120be199fb6f7313c1d4
|
||||
|
@ -66,7 +66,7 @@ $(document).ready(function() {
|
||||
|
||||
// Add event listener for opening and closing details
|
||||
$('#example tbody').on('click', 'td.details-control', function () {
|
||||
var tr = $(this).parents('tr');
|
||||
var tr = $(this).closest('tr');
|
||||
var row = table.row( tr );
|
||||
|
||||
if ( row.child.isShown() ) {
|
||||
@ -180,7 +180,7 @@ $(document).ready(function() {
|
||||
|
||||
// Add event listener for opening and closing details
|
||||
$('#example tbody').on('click', 'td.details-control', function () {
|
||||
var tr = $(this).parents('tr');
|
||||
var tr = $(this).closest('tr');
|
||||
var row = table.row( tr );
|
||||
|
||||
if ( row.child.isShown() ) {
|
||||
|
@ -57,7 +57,7 @@ $(document).ready(function() {
|
||||
var detailRows = [];
|
||||
|
||||
$('#example tbody').on( 'click', 'tr td:first-child', function () {
|
||||
var tr = $(this).parents('tr');
|
||||
var tr = $(this).closest('tr');
|
||||
var row = dt.row( tr );
|
||||
var idx = $.inArray( tr.attr('id'), detailRows );
|
||||
|
||||
@ -188,7 +188,7 @@ $(document).ready(function() {
|
||||
var detailRows = [];
|
||||
|
||||
$('#example tbody').on( 'click', 'tr td:first-child', function () {
|
||||
var tr = $(this).parents('tr');
|
||||
var tr = $(this).closest('tr');
|
||||
var row = dt.row( tr );
|
||||
var idx = $.inArray( tr.attr('id'), detailRows );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user