X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/56fd5c4d90c7d3757fb97ff16c40aaa307ae1d22..549372323700eff5855baffecdfd095d2f8a4555:/app/assets/javascripts/edit.js diff --git a/app/assets/javascripts/edit.js b/app/assets/javascripts/edit.js index 7de65190e..8800195b3 100644 --- a/app/assets/javascripts/edit.js +++ b/app/assets/javascripts/edit.js @@ -5,27 +5,3 @@ function maximiseMap() { function minimiseMap() { $("#content").removeClass("maximised"); } - -$(document).ready(function () { - $("#search_form").submit(function (e) { - e.preventDefault(); - - $("#sidebar_title").html(I18n.t('site.sidebar.search_results')); - $("#sidebar_content").load($(this).attr("action"), { - query: $("#query").val() - }, openSidebar); - }); - - $("#describe_location").click(function (e) { - e.preventDefault(); - - var mapParams = OSM.mapParams(); - - $("#sidebar_title").html(I18n.t('site.sidebar.search_results')); - $("#sidebar_content").load($(this).attr("href"), { - lat: mapParams.lat, - lon: mapParams.lon, - zoom: mapParams.zoom - }, openSidebar); - }); -});