Show if items are currently playing on history page.
This commit is contained in:
@@ -139,8 +139,13 @@
|
|||||||
{
|
{
|
||||||
"targets": [1],
|
"targets": [1],
|
||||||
"data":"date",
|
"data":"date",
|
||||||
"render": function ( data, type, full ) {
|
"createdCell": function (td, cellData, rowData, row, col) {
|
||||||
return moment(data, "X").format("${date_format}");
|
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