Improved www.ttss.krakow.pl
p0358
2017-10-28 9778715cc1099cf1aa1f03dd0a983fd3cc3c6181
Fix for tram loops
2 files modified
3 ■■■■ changed files
common.js 1 ●●●● patch | view | raw | blame | history
index.js 2 ●●● patch | view | raw | blame | history
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;
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) {