Link rating key in export table to info page

This commit is contained in:
JonnyWong16 2020-08-03 18:29:34 -07:00
parent 7627f025ed
commit 010fefcbbc
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -58,7 +58,7 @@ export_table_options = {
"data": "rating_key", "data": "rating_key",
"createdCell": function (td, cellData, rowData, row, col) { "createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== '') { if (cellData !== '') {
$(td).html(cellData); $(td).html('<a href="' + page('info', rowData['rating_key']) + '">' + cellData + '</a>');
} }
}, },
"width": "8%", "width": "8%",