Improved www.ttss.krakow.pl
Jacek Kowalski
2017-04-17 ad39c79490e2043cf7442696da4e8ed98445abec
Fix invalid vehicle id parsed for departed entries
1 files modified
4 ■■■■ changed files
index.js 4 ●●●● patch | view | raw | blame | history
index.js
@@ -182,7 +182,7 @@
            var tr = document.createElement('tr');
            addCellWithText(tr, data.old[i].patternText);
            var dir_cell = addCellWithText(tr, data.old[i].direction);
            var vehicle = parseVehicle(data.actual[i].vehicleId);
            var vehicle = parseVehicle(data.old[i].vehicleId);
            dir_cell.appendChild(displayVehicle(vehicle));
            addCellWithText(tr, vehicle.num).className = 'vehicleData';
            var status = parseStatus(data.old[i]);
@@ -192,7 +192,7 @@
            tr.className = 'active';
            tr.addEventListener('click', function(tripId, vehicleInfo) {
                return function(){ loadRoute(tripId, vehicleInfo); }
            }(data.actual[i].tripId, vehicle));
            }(data.old[i].tripId, vehicle));
            times_table.appendChild(tr);
        }