schapm16/TrainSchedule

Duplicate train names will break periodic update

Opened this issue · 0 comments

The periodic update relies on JQuery class selectors that are defined based on trainName. If duplicate trainNames are used for multiple entries the periodic update will break the data table.

$("." + trainName + " td").eq(3).text(nextArrival.format("HH:mm"));

$("." + trainName + " td").eq(4).text(timeUntilNext);