From 9b4b3e0ecb2644dfec41a21f99ff3a82a5e9bbcf Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 25 Dec 2017 21:35:22 -0800 Subject: [PATCH] Add stopped state to history table activity --- data/interfaces/default/js/tables/history_table.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/interfaces/default/js/tables/history_table.js b/data/interfaces/default/js/tables/history_table.js index 8f74be8c..be61ec49 100644 --- a/data/interfaces/default/js/tables/history_table.js +++ b/data/interfaces/default/js/tables/history_table.js @@ -59,6 +59,8 @@ history_table_options = { state = ''; } else if (rowData['state'] === 'buffering') { state = ''; + } else if (rowData['state'] === 'stopped') { + state = ''; } $(td).html('
' + state + ' ' + date + '
'); } else if (rowData['group_count'] > 1) { @@ -203,7 +205,7 @@ history_table_options = { "targets": [9], "data":"stopped", "createdCell": function (td, cellData, rowData, row, col) { - if (cellData === null || rowData['state'] != null) { + if (cellData === null || rowData['state'] != "stopped") { $(td).html('n/a'); } else { $(td).html(moment(cellData,"X").format(time_format));