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) {
</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" %>
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?"