summaryrefslogtreecommitdiff
path: root/public/static/js/travelynx-actions.js
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-06-14 19:12:44 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-06-14 19:12:44 +0200
commitdeb5444fa2965228b537e86fce862436ef2e6e19 (patch)
tree479773cdf8471fb730b09f0b8297cfa003fa60ec /public/static/js/travelynx-actions.js
parentd47ff9615b551bbd844a799be7717e9e74a04266 (diff)
frontend js for checked-in view: never show fractional delays
Diffstat (limited to 'public/static/js/travelynx-actions.js')
-rw-r--r--public/static/js/travelynx-actions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js
index 7b36665..370aa33 100644
--- a/public/static/js/travelynx-actions.js
+++ b/public/static/js/travelynx-actions.js
@@ -79,12 +79,12 @@ function odelay(sched, rt) {
return '';
}
if (sched < rt) {
- return ' (+' + ((rt - sched) / 60) + ')';
+ return ' (+' + Math.round((rt - sched) / 60) + ')';
}
else if (sched == rt) {
return '';
}
- return ' (' + ((rt - sched) / 60) + ')';
+ return ' (' + Math.round((rt - sched) / 60) + ')';
}
function tvly_run(link, req, err_callback) {