Lines 47-57
$(document).ready(function() {
Link Here
|
47 |
$('#suggestiontabs').tabs({ |
47 |
$('#suggestiontabs').tabs({ |
48 |
// Correct table sizing for tables hidden in tabs |
48 |
// Correct table sizing for tables hidden in tabs |
49 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
49 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
50 |
"show": function(event, ui) { |
50 |
"activate": function(event, ui) { |
51 |
var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable(); |
51 |
$( $.fn.dataTable.tables( true ) ).DataTable().columns.adjust(); |
52 |
if ( oTable.length > 0 ) { |
|
|
53 |
oTable.fnAdjustColumnSizing(); |
54 |
} |
55 |
} |
52 |
} |
56 |
}); |
53 |
}); |
57 |
$(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, { |
54 |
$(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, { |
58 |
- |
|
|