From: Richard Fairhurst Date: Sun, 9 Mar 2014 12:05:37 +0000 (+0000) Subject: Resolve conflict X-Git-Tag: live~4237^2~21 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/42c1dec8f0f53b457e9512bcc24f26cad9df9916 Resolve conflict --- diff --git a/app/assets/javascripts/routing.js.erb b/app/assets/javascripts/routing.js.erb index 7bb27f72b..42e4ba2bc 100644 --- a/app/assets/javascripts/routing.js.erb +++ b/app/assets/javascripts/routing.js.erb @@ -206,8 +206,8 @@ OSM.Routing=function(map,name,jqSearch) { row.append(" "); row.append(""+step[2]); row.append(""+dist); - with ({ num: i, ll: step[0], lineseg: step[4] }) { - row.on('click',function(e) { r.clickTurn(num, ll); }); + with ({ instruction: step[2], ll: step[0], lineseg: step[4] }) { + row.on('click',function(e) { r.clickTurn(instruction, ll); }); row.hover(function(e){r.highlightSegment(lineseg);}, function(e){r.unhighlightSegment();}); }; $('#turnbyturn').append(row); @@ -216,8 +216,8 @@ OSM.Routing=function(map,name,jqSearch) { $('#sidebar_content').append('

' + r.chosenEngine.creditline + '

'); }; - r.clickTurn=function(num,latlng) { - r.popup=L.popup().setLatLng(latlng).setContent("

"+(num+1)+"

").openOn(r.map); + r.clickTurn=function(instruction,latlng) { + r.popup=L.popup().setLatLng(latlng).setContent("

"+instruction+"

").openOn(r.map); }; r.highlightSegment=function(lineseg){ if (r.highlighted) map.removeLayer(r.highlighted);