]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions.js
Only the standard layer can be exported
[rails.git] / app / assets / javascripts / index / directions.js
index a5f3b00802c1afd68c9d5b4c58cf800e1ba6caec..a141045a3da13141d0b075f09303f654ee2a3f77 100644 (file)
@@ -189,7 +189,7 @@ OSM.Directions = function (map) {
         map.removeLayer(polyline);
 
         if (!dragging) {
-          alert(I18n.t('javascripts.directions.errors.no_route'));
+          $('#sidebar_content').html('<p class="search_results_error">' + I18n.t('javascripts.directions.errors.no_route') + '</p>');
         }
 
         return;