]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_potlatch.html.erb
Update ohauth and switch to using the new headerGenerator method
[rails.git] / app / views / site / _potlatch.html.erb
index a1c637b79ebf742dcda88bcd77c5e4bf997ecee6..d48fd799d2629ca98a6c3ebdb5b6070c0d97b280 100644 (file)
 
   $(document).ready(function () {
     $("body").on("click", "a.set_position", function () {
-      var lat = parseFloat($(this).attr("data-lat"));
-      var lon = parseFloat($(this).attr("data-lon"));
-      var zoom = parseInt($(this).attr("data-zoom"));
+      var data = $(this).data();
 
-      doSWF(lat, lon, zoom || 15);
+      doSWF(data.lat, data.lon, data.zoom || 15);
     });
   });
 </script>