]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_key.html.erb
Don't escape anything in text/plain message notifications
[rails.git] / app / views / site / _key.html.erb
index 6fc70ef46f1b1d71092fffe40b2af5761eebc8af..54bbca6a7727d667fd39f8cdcd3b20df00e665a7 100644 (file)
   }
 
   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()
+    });
   }
 </script>