mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Hide rating key column on media export table
This commit is contained in:
parent
02d4a3b9fe
commit
9a7d6ea7d7
2 changed files with 2 additions and 1 deletions
|
@ -906,6 +906,7 @@ DOCUMENTATION :: END
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
export_table = $('#export_table-RK-${data["rating_key"]}').DataTable(export_table_options);
|
export_table = $('#export_table-RK-${data["rating_key"]}').DataTable(export_table_options);
|
||||||
|
export_table.column(2).visible(false);
|
||||||
|
|
||||||
var colvis = new $.fn.dataTable.ColVis(export_table, { buttonText: '<i class="fa fa-columns"></i> Select columns', buttonClass: 'btn btn-dark' });
|
var colvis = new $.fn.dataTable.ColVis(export_table, { buttonText: '<i class="fa fa-columns"></i> Select columns', buttonClass: 'btn btn-dark' });
|
||||||
$(colvis.button()).appendTo('#button-bar-export');
|
$(colvis.button()).appendTo('#button-bar-export');
|
||||||
|
|
|
@ -57,7 +57,7 @@ export_table_options = {
|
||||||
"targets": [2],
|
"targets": [2],
|
||||||
"data": "rating_key",
|
"data": "rating_key",
|
||||||
"createdCell": function (td, cellData, rowData, row, col) {
|
"createdCell": function (td, cellData, rowData, row, col) {
|
||||||
if (cellData !== '') {
|
if (cellData !== null) {
|
||||||
$(td).html('<a href="' + page('info', rowData['rating_key']) + '">' + cellData + '</a>');
|
$(td).html('<a href="' + page('info', rowData['rating_key']) + '">' + cellData + '</a>');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue