From 9778715cc1099cf1aa1f03dd0a983fd3cc3c6181 Mon Sep 17 00:00:00 2001
From: p0358 <p0358@users.noreply.github.com>
Date: Sat, 28 Oct 2017 16:00:09 +0000
Subject: [PATCH] Fix for tram loops

---
 index.js  |    2 +-
 common.js |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/common.js b/common.js
index 64f0167..e63a371 100644
--- a/common.js
+++ b/common.js
@@ -35,7 +35,6 @@
 function parseStatus(status) {
 	switch(status.status) {
 		case 'STOPPING':
-			return lang.boarding_sign;
 		case 'PREDICTED':
 			if(status.actualRelativeTime <= 0)
 				return lang.boarding_sign;
diff --git a/index.js b/index.js
index fc4a34d..3a7e3f5 100644
--- a/index.js
+++ b/index.js
@@ -137,7 +137,7 @@
 			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';
 			} else if(parseInt(delay) > 9) {

--
Gitblit v1.9.1