Simplify close icon for routing panel and fix validation error

This commit is contained in:
Tom Hughes 2015-03-16 20:26:59 +00:00
parent ac37b89859
commit 6d9d688080
3 changed files with 2 additions and 4 deletions

View 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) {

View 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" %>

View 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?"