mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Add function to download exported files
This commit is contained in:
parent
6334ffa197
commit
deb49d7ff9
3 changed files with 72 additions and 4 deletions
|
@ -116,3 +116,12 @@ export_table_options = {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
$('.export_table').on('click', '> tbody > tr > td > button.btn-download', function (e) {
|
||||
var tr = $(this).closest('tr');
|
||||
var row = export_table.row(tr);
|
||||
var rowData = row.data();
|
||||
|
||||
e.preventDefault();
|
||||
window.location.href = 'download_export?row_id=' + rowData['row_id'];
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue