summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-12-31 12:19:49 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-12-31 12:19:49 +0100
commitb98e98d961566b0f121fad901cf0363cb9ea4a82 (patch)
treea655e3eda8e48202b21fd3d9b9791096bd9ad6aa
parent06234df56463fbc42b9bd6daa9aabed4e8b7b9de (diff)
travelynx-actions: do not compute delay if scheduled == 0
-rw-r--r--public/static/js/travelynx-actions.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js
index 5f58f29..d4ddf45 100644
--- a/public/static/js/travelynx-actions.js
+++ b/public/static/js/travelynx-actions.js
@@ -75,6 +75,9 @@ function hhmm(epoch) {
return (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m);
}
function odelay(sched, rt) {
+ if (sched == 0) {
+ return '';
+ }
if (sched < rt) {
return ' (+' + ((rt - sched) / 60) + ')';
}