Simplify close icon for routing panel and fix validation error
authorTom Hughes <tom@compton.nu>
Mon, 16 Mar 2015 20:26:59 +0000 (20:26 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 16 Mar 2015 20:26:59 +0000 (20:26 +0000)
app/assets/javascripts/index/directions.js
app/views/layouts/_search.html.erb
config/locales/en.yml

index 1b30bce71cf96fe8c3eb1b49528bbd5a9ebf3aca..03f8cb2256038b049aee3a8174fb788ce334a51a 100644 (file)
@@ -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) {
index 065190bd5740d8e1d98688581ce859c3b20cb798..5a40e02df5a113a0bd7ae3f755b6601fa7c9558c 100644 (file)
@@ -9,7 +9,7 @@
   </form>
 
   <form method="GET" action="<%= directions_path %>" class="directions_form">
-    <div style="width:100%; text-align:right; height:30px;"><%= link_to tag('span', { :class => "icon close"}), root_path, { :title => t('site.search.close_directions_title'), :class => "directions_close" } %></div>
+    <div style="width:100%; text-align:right; height:30px;"><span class="icon close"></span></div>
 
     <div class="line">
       <%= image_tag "marker-green.png", :class => "routing_marker", :id => "marker_from", :draggable => "true" %>
index 30fae4945974cc1cb493041b3bf505ec07332215..a26db17bb445e2e3facee9e2770c51ee0a42c1e1 100644 (file)
@@ -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?"