From 441146eeae3cb426ef0c186b0afeb5c206b38eaa Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Thu, 15 Mar 2012 17:42:17 +0100 Subject: [PATCH] changed look of route description header area --- WebContent/routing.js | 6 +++--- WebContent/utils.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WebContent/routing.js b/WebContent/routing.js index 7da8efa8b..0cf5707cb 100644 --- a/WebContent/routing.js +++ b/WebContent/routing.js @@ -181,14 +181,14 @@ function showRouteDescription(response) { route_desc += ''; headline = ""; headline += OSRM.loc("ROUTE_DESCRIPTION")+":
"; - headline += '
'; + headline += '
'; headline += "" + OSRM.loc("DISTANCE")+": " + getDistanceWithUnit(response.route_summary.total_distance) - + " - " + + "
" + OSRM.loc("DURATION")+": " + secondsToTime(response.route_summary.total_time) + "
"; headline += '
'; - headline += '
'+route_link+'
'+gpx_link+'
'; + headline += '
'+route_link+'
'+gpx_link+'
'; var output = ""; output += route_desc; diff --git a/WebContent/utils.js b/WebContent/utils.js index 405cb1377..d59948aff 100644 --- a/WebContent/utils.js +++ b/WebContent/utils.js @@ -39,7 +39,7 @@ function secondsToTime(seconds){ return minutes + ' ' + 'min'; } else{ - return hours + ' ' + 'h' + ' ' + minutes + ' ' + 'min'; + return hours + ' ' + 'h' + ' ' + minutes + ' ' + 'min'; } }