Show if items are currently playing on history page.
This commit is contained in:
@@ -139,8 +139,13 @@
|
||||
{
|
||||
"targets": [1],
|
||||
"data":"date",
|
||||
"render": function ( data, type, full ) {
|
||||
return moment(data, "X").format("${date_format}");
|
||||
"createdCell": function (td, cellData, rowData, row, col) {
|
||||
if (rowData['stopped'] === null) {
|
||||
$(td).addClass('currentlyWatching');
|
||||
$(td).html('Currently watching...');
|
||||
} else {
|
||||
$(td).html(moment(cellData,"X").format("${date_format}"));
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user