X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3cf3d888b28ae8d9c2697a9b1083f3d5997e3947..b95f9115d7edf13ccdf8aac5e91251bf05d3084f:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 21d5366f3..85f5dab0d 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -38,13 +38,6 @@ $(document).ready(function () { handleResize(); - $("#show_data").click(function (e) { - $.ajax({ url: $(this).attr('href'), success: function (sidebarHtml) { - startBrowse(sidebarHtml); - }}); - e.preventDefault(); - }); - $("body").on("click", "a.set_position", function () { var data = $(this).data(); var centre = new OpenLayers.LonLat(data.lon, data.lat); @@ -73,7 +66,7 @@ $(document).ready(function () { var extents = unproj(map.getExtent()); var expiry = new Date(); - updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents.left, extents.bottom, extents.right, extents.top, params.object.type, params.object.id); + updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents.left, extents.bottom, extents.right, extents.top, params.object); expiry.setYear(expiry.getFullYear() + 10); $.cookie("_osm_location", [lonlat.lon, lonlat.lat, zoom, layers].join("|"), {expires: expiry}); @@ -108,17 +101,6 @@ $(document).ready(function () { map.setCenter(centre, zoom); }); - $("#exportanchor").click(function (e) { - $.ajax({ url: $(this).data('url'), success: function (sidebarHtml) { - startExport(sidebarHtml); - }}); - e.preventDefault(); - }); - - if (window.location.pathname == "/export") { - $("#exportanchor").click(); - } - $("#search_form").submit(function () { var extent = unproj(map.getExtent());