diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/static/js/travelynx-actions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js index 30f2439..437ad60 100644 --- a/public/static/js/travelynx-actions.js +++ b/public/static/js/travelynx-actions.js @@ -166,7 +166,11 @@ function tvly_journey_progress() { break; } if ((rt_dep != 0) && (rt_dep - now > 0)) { - $('.next-stop').html(stop_name + '<br/>' + hhmm(rt_arr) + ' → ' + hhmm(rt_dep) + odelay(sched_dep, rt_dep)); + if (rt_arr != 0) { + $('.next-stop').html(stop_name + '<br/>' + hhmm(rt_arr) + ' → ' + hhmm(rt_dep) + odelay(sched_dep, rt_dep)); + } else { + $('.next-stop').html(stop_name + '<br/>' + hhmm(rt_dep) + odelay(sched_dep, rt_dep)); + } break; } } |