From 42c1dec8f0f53b457e9512bcc24f26cad9df9916 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Sun, 9 Mar 2014 12:05:37 +0000 Subject: [PATCH] Resolve conflict --- app/assets/javascripts/routing.js.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.5