X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9cb8311f02e1bd0e2188e3b1db623400aaf8da47..d50b0fb978f205e079a69c279a735c33137abfbf:/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 6fc70ef46..54bbca6a7 100644 --- a/app/views/site/_key.html.erb +++ b/app/views/site/_key.html.erb @@ -17,14 +17,10 @@ } 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() + }); }