From: Richard Fairhurst Date: Sat, 8 Mar 2014 10:43:29 +0000 (+0000) Subject: Reformat string to avoid long line X-Git-Tag: live~4217^2~36 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/bf895a0332242df4189b507e647d0aa4ce4a5a04 Reformat string to avoid long line --- diff --git a/app/assets/javascripts/routing.js.erb b/app/assets/javascripts/routing.js.erb index 74607ef39..fb03e5bec 100644 --- a/app/assets/javascripts/routing.js.erb +++ b/app/assets/javascripts/routing.js.erb @@ -184,13 +184,13 @@ OSM.Routing=function(map,name,jqSearch) { // Take directions and write them out // data = { steps: array of [latlng, sprite number, instruction text, distance in metres] } // sprite numbers equate to OSRM's route_instructions turn values - // *** translations? r.setItinerary=function(data) { // Create base table $("#content").removeClass("overlay-sidebar"); $('#sidebar_content').empty(); - var html='

' + I18n.t('javascripts.directions.directions') + '

'.replace(/~/g,"'"); - html+=""; + var html=('

' + + '' + I18n.t('javascripts.directions.directions') + + '

').replace(/~/g,"'"); $('#sidebar_content').html(html); // Add each row var cumulative=0;