Difference between revisions of "Dev/Results"

(Make it so that the row children appear when you click the team name)
(Improved "team info shows when you click team name")
Line 111: Line 111:
 
}
 
}
 
},
 
},
{'data': 'team_name', 'className': 'details-control'},
+
//{'data': 'team_name', 'className': 'details-control'},
 +
{
 +
'data': function(row, type, val, meta) {
 +
return "<a class='team-info-control' style='cursor: pointer;'>" + row.team_name + "</a>";
 +
}
 +
},
 
{'data': 'award', 'defaultContent': ' '}
 
{'data': 'award', 'defaultContent': ' '}
 
],
 
],
Line 118: Line 123:
 
 
 
// Add event listener for opening and closing details
 
// Add event listener for opening and closing details
$('#table_team tbody').on('click', 'td.details-control', function () {
+
$('#table_team tbody').on('click', 'a.team-info-control', function () {
 
var tr = $(this).closest('tr');
 
var tr = $(this).closest('tr');
 
var row = t.row( tr );
 
var row = t.row( tr );

Revision as of 20:14, 23 September 2015

Comprehensive Results from iGEM 2015

View: [All Teams] [Award Winners] | [Africa] [Asia] [Europe] [Latin America][other?]

Team Award