frontend tvly_journey_progress: handle entry-only stops
This commit is contained in:
parent
f942a9d9f5
commit
745b3708d3
1 changed files with 5 additions and 1 deletions
|
@ -166,7 +166,11 @@ function tvly_journey_progress() {
|
|||
break;
|
||||
}
|
||||
if ((rt_dep != 0) && (rt_dep - now > 0)) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue