From 07dae439ef2617451cd0aa4e9ecebf5d86f5e078 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <jkowalsk@student.agh.edu.pl> Date: Sat, 01 Sep 2018 10:56:34 +0000 Subject: [PATCH] Merge pull request #15 from tsedor/patch-1 --- index.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index fc4a34d..c21eff0 100644 --- a/index.js +++ b/index.js @@ -137,9 +137,11 @@ var delay = parseDelay(data.actual[i]); var delay_cell = addCellWithText(tr, delay); - if(status == lang.boarding_sign) { + if(data.actual[i].status == 'STOPPING') { tr.className = 'success'; - status_cell.className = 'status-boarding'; + if (data.actual[i].actualRelativeTime <= 0) { + status_cell.className = 'status-boarding'; + } } else if(parseInt(delay) > 9) { tr.className = 'danger'; delay_cell.className = 'status-delayed'; -- Gitblit v1.9.1