Show if items are currently playing on history page.

This commit is contained in:
Tim 2015-06-16 20:00:40 +02:00
parent 650e0963e2
commit 58c1dec68a

View file

@ -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}"));
}
}
},
{