diff --git a/server/templates/history.html b/server/templates/history.html index f665dbf..0bd5c10 100644 --- a/server/templates/history.html +++ b/server/templates/history.html @@ -29,6 +29,8 @@ {{ data_table( "trip-list", [ + {"key": "", "label": "", "sortable": false, "class": "text-center"}, + {"key": "id", "label": "ID", "sortable": false}, {"key": "started", "label": "Started", "sortable": true}, {"key": "distance", "label": "km", "sortable": true}, {"key": "duration", "label": "Time", "sortable": true}, diff --git a/static/js/history.js b/static/js/history.js index 20a1bd7..bebdc1e 100644 --- a/static/js/history.js +++ b/static/js/history.js @@ -225,9 +225,9 @@ row.dataset.duration = t.duration_seconds; row.dataset.maxSpeed = t.max_speed_kmh; row.dataset.tripId = t.id; row.style.cursor = "pointer"; var db = del ? '' : ""; - var chk = bUrl ? '' : ''; - var idPrefix = showId ? '#' + t.id + '' : ''; - row.innerHTML = "