]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_potlatch2.html.erb
Make setPosition reposition Potlatch 2 instead of reloading it
[rails.git] / app / views / site / _potlatch2.html.erb
index d2358f05e0afd291632060032836d8e695c17e47..8256540298f6d8f0c8b104f32c23742a4042e9e2 100644 (file)
@@ -43,6 +43,6 @@
   doSWF(<%= @lat || 'null' %>,<%= @lon || 'null' %>,<%= @zoom %>);
 
   function setPosition(lat, lon, zoom) {
-    doSWF(lat, lon, zoom || 15);
+    $("potlatch").setPosition(lat, lon, Math.max(zoom || 15, 13));
   }
 </script>