From 22ceb491d64d539150ec9a3a95f551677f1b314b Mon Sep 17 00:00:00 2001 From: tsedor <itsme199@gmail.com> Date: Sat, 01 Sep 2018 06:59:58 +0000 Subject: [PATCH] Update common.js --- 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