diff --git a/WebContent/localization/OSRM.Localization.js b/WebContent/localization/OSRM.Localization.js index dad3ec19e..483007b17 100644 --- a/WebContent/localization/OSRM.Localization.js +++ b/WebContent/localization/OSRM.Localization.js @@ -49,11 +49,11 @@ init: function() { var textnode = document.createTextNode(OSRM.DEFAULTS.LANGUAGE); var myspan = document.createElement("span"); myspan.className = "styled-select"; - myspan.id = "styled-select" + select.id; + myspan.id = "styled-select-" + select.id; myspan.appendChild(textnode); select.parentNode.insertBefore(myspan, select); myspan.style.width = (select.clientWidth-2)+"px"; - myspan.style.height = (select.clientHeight)+"px"; + myspan.style.height = (select.clientHeight+2)/supported_languages.length+"px"; }, // perform language change @@ -66,7 +66,7 @@ setLanguage: function(language) { select.value = language; for(var i = 0; i < option.length; i++) if(option[i].selected == true) { - document.getElementById("styled-select" + select.id).childNodes[0].nodeValue = option[i].childNodes[0].nodeValue; + document.getElementById("styled-select-" + select.id).childNodes[0].nodeValue = option[i].childNodes[0].nodeValue; break; } } diff --git a/WebContent/main.css b/WebContent/main.css index dde98e404..50465e790 100644 --- a/WebContent/main.css +++ b/WebContent/main.css @@ -515,6 +515,14 @@ html, body { vertical-align:2px; } +input[type=checkbox], +select +{ + cursor:pointer; +} + + +/* table styles */ .full { display:table; diff --git a/WebContent/routing/OSRM.RoutingDescription.js b/WebContent/routing/OSRM.RoutingDescription.js index e64668748..54ad48a4c 100644 --- a/WebContent/routing/OSRM.RoutingDescription.js +++ b/WebContent/routing/OSRM.RoutingDescription.js @@ -41,7 +41,7 @@ showRouteLink: function(response){ if(!response[OSRM.DEFAULTS.SHORTENER_REPLY_PARAMETER]) OSRM.RoutingDescription.showRouteLink_TimeOut(); else - document.getElementById('route-link').innerHTML = '['+response[OSRM.DEFAULTS.SHORTENER_REPLY_PARAMETER]+']'; + document.getElementById('route-link').innerHTML = '['+response[OSRM.DEFAULTS.SHORTENER_REPLY_PARAMETER]+']'; }, showRouteLink_TimeOut: function(){ document.getElementById('route-link').innerHTML = '['+OSRM.loc("LINK_TO_ROUTE_TIMEOUT")+']';