X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/56fd5c4d90c7d3757fb97ff16c40aaa307ae1d22..53e4d600e712dea988028a12f68927c3400a6901:/app/assets/javascripts/edit.js?ds=inline diff --git a/app/assets/javascripts/edit.js b/app/assets/javascripts/edit.js index 7de65190e..b03b71154 100644 --- a/app/assets/javascripts/edit.js +++ b/app/assets/javascripts/edit.js @@ -10,10 +10,9 @@ $(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) { @@ -21,11 +20,10 @@ $(document).ready(function () { 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); + }); }); });