added option (commented out) to use input box for route links to get

a marked url when clicking in it -> test what is better
This commit is contained in:
DennisSchiefer 2012-03-30 10:35:14 +01:00
parent 007dd19cec
commit 7b4e923ec4

View File

@ -36,6 +36,7 @@ onClickCreateShortcut: function(src){
},
showRouteLink: function(response){
document.getElementById('route-prelink').innerHTML = '[<a id="gpx-link" class = "text-selectable" href="' +response.ShortURL+ '">'+response.ShortURL+'</a>]';
// document.getElementById('route-prelink').innerHTML = '[<input class="text-selectable output-box" value="'+response.ShortURL+'" type="text" onfocus="this.select()" readonly="readonly"/>]';
},
showRouteLink_TimeOut: function(){
document.getElementById('route-prelink').innerHTML = '['+OSRM.loc("LINK_TO_ROUTE_TIMEOUT")+']';