shortener reply parameter name flexible,

check if reply is correct,
beautified continue marker
This commit is contained in:
DennisSchiefer
2012-04-27 12:13:27 +01:00
parent fbe722465d
commit a3cfd49f97
3 changed files with 5 additions and 1 deletions
@@ -38,7 +38,10 @@ onClickCreateShortcut: function(src){
document.getElementById('route-link').innerHTML = '['+OSRM.loc("GENERATE_LINK_TO_ROUTE")+']';
},
showRouteLink: function(response){
document.getElementById('route-link').innerHTML = '[<a class="route-link text-selectable" href="' +response.ShortURL+ '">'+response.ShortURL+'</a>]';
if(!response[OSRM.DEFAULTS.SHORTENER_REPLY_PARAMETER])
OSRM.RoutingDescription.showRouteLink_TimeOut();
else
document.getElementById('route-link').innerHTML = '[<a class="route-link text-selectable" href="' +response[OSRM.DEFAULTS.SHORTENER_REPLY_PARAMETER]+ '">'+response[OSRM.DEFAULTS.SHORTENER_REPLY_PARAMETER]+'</a>]';
},
showRouteLink_TimeOut: function(){
document.getElementById('route-link').innerHTML = '['+OSRM.loc("LINK_TO_ROUTE_TIMEOUT")+']';