Add link to export filename to view in browser

This commit is contained in:
JonnyWong16 2020-08-04 10:34:57 -07:00
parent 61c692ad4e
commit 14bb377794
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 58 additions and 2 deletions

View file

@ -69,7 +69,11 @@ export_table_options = {
"data": "filename",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== '') {
$(td).html(cellData);
if (rowData['complete'] === 1 && rowData['exists']) {
$(td).html('<a href="view_export?export_id=' + rowData['export_id'] + '" target="_blank">' + cellData + '</a>');
} else {
$(td).html(cellData);
}
}
},
"width": "50%",