Add datatables processing to collections and playlists tables

This commit is contained in:
JonnyWong16 2020-09-30 22:09:19 -07:00
parent 1061c334ae
commit f151bb1451
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 107 additions and 56 deletions

View file

@ -21,10 +21,10 @@ collections_table_options = {
"columnDefs": [
{
"targets": [0],
"data": "title",
"data": "titleSort",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== '') {
$(td).html('<a href="' + page('info', rowData['ratingKey']) + '"><i class="fa fa-blank fa-fw"></i>' + cellData + '</a>');
$(td).html('<a href="' + page('info', rowData['ratingKey']) + '"><i class="fa fa-blank fa-fw"></i>' + rowData['title'] + '</a>');
}
},
"width": "50%",