From: Tom Hughes Date: Mon, 16 Mar 2015 20:26:59 +0000 (+0000) Subject: Simplify close icon for routing panel and fix validation error X-Git-Tag: live~4126 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6d9d688080ebcf166addb868b8fceeee55c3e700 Simplify close icon for routing panel and fix validation error --- diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 1b30bce71..03f8cb225 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -108,7 +108,7 @@ OSM.Directions = function (map) { return endpoint; } - $(".directions_form a.directions_close").on("click", function(e) { + $(".directions_form .close").on("click", function(e) { e.preventDefault(); var route_from = endpoints[0].value; if (route_from) { diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index 065190bd5..5a40e02df 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -9,7 +9,7 @@
-
<%= link_to tag('span', { :class => "icon close"}), root_path, { :title => t('site.search.close_directions_title'), :class => "directions_close" } %>
+
<%= image_tag "marker-green.png", :class => "routing_marker", :id => "marker_from", :draggable => "true" %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 30fae4945..a26db17bb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1367,8 +1367,6 @@ en: search: Search get_directions: "Get directions" get_directions_title: "Find directions between two points" - close_directions: "Close directions" - close_directions_title: "Close the directions panel" from: "From" to: "To" where_am_i: "Where am I?"