Add items suffix to collections and playlist table

This commit is contained in:
JonnyWong16 2020-10-01 09:57:01 -07:00
parent 2c360b6472
commit 15e928ecf2
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 43 additions and 11 deletions

View file

@ -73,7 +73,11 @@ collections_table_options = {
"data": "childCount",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== '') {
$(td).html(cellData);
var type = MEDIA_TYPE_HEADERS[rowData['subtype']] || '';
if (rowData['childCount'] == 1) {
type = type.slice(0, -1);
}
$(td).html(cellData + ' ' + type);
}
},
"width": "10%",