1 <script type="text/javascript">
3 function describeLocation() {
4 var args = querystring.parse($("#viewanchor").attr("href").split('?')[1]);
6 $("#sidebar_title").html("<%= t 'site.sidebar.search_results' %>");
7 $("#sidebar_content").load("<%= url_for :controller => :geocoder, :action => :description %>", {
16 <% content_for :optionals do %>
17 <div class="optionalbox">
18 <div class="search_container">
19 <div id="search_field">
20 <%= form_tag url_for(:controller => :geocoder, :action => :search), :id => "search_form" do %>
21 <%= submit_tag t('site.search.submit_text') %>
22 <%= text_field_tag :query, h(params[:query]), :tabindex => "1", :placeholder => t('site.search.search'), :autofocus => "autofocus" %>
26 <p class='search_help deemphasize'>
27 <%= raw(t 'site.search.search_help') %>
28 <span class="whereami"><a href="javascript:describeLocation()" title="<%= t 'site.search.where_am_i_title' %>"><%= t 'site.search.where_am_i' %></a></span>