X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/79df86023c5db1f1c47c80808565733c1200656a..cf7116402bae7ac4e06d9a5d67e7f578277ca459:/app/views/site/_key.html.erb?ds=sidebyside diff --git a/app/views/site/_key.html.erb b/app/views/site/_key.html.erb index e990071c8..54bbca6a7 100644 --- a/app/views/site/_key.html.erb +++ b/app/views/site/_key.html.erb @@ -17,17 +17,13 @@ } function updateMapKey() { - var layer = map.baseLayer.keyid; - var zoom = map.getZoom(); - - <%= remote_function :update => "sidebar_content", - :url => { :action => "key" }, - :with => "'layer=' + layer + '&zoom=' + zoom", - :method => :get - %> + $("#sidebar_content").load("<%= url_for :action => :key %>", { + layer: map.baseLayer.keyid, + zoom: map.getZoom() + }); } <% content_for :left_menu do %> - <%= link_to_function t('site.key.map_key'), "openMapKey()", :title => t('site.key.map_key_tooltip') %> +
  • <%= link_to_function t('site.key.map_key'), "openMapKey()", :title => t('site.key.map_key_tooltip') %>
  • <% end %>