From deb5444fa2965228b537e86fce862436ef2e6e19 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 14 Jun 2025 19:12:44 +0200 Subject: frontend js for checked-in view: never show fractional delays --- public/static/js/travelynx-actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/static/js/travelynx-actions.js') 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) { -- cgit v1.2.3