]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/search.js
Sidebar work
[rails.git] / app / assets / javascripts / index / search.js
index dc4df821e8598e03d35b693c72c6251163859ae6..ce00fa0afff8c74600f757be2732e80288936253 100644 (file)
@@ -21,7 +21,6 @@ function initializeSearch(map) {
 
     var bounds = map.getBounds();
 
-    $("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
     $("#sidebar_content").load($(this).attr("action"), {
       query: $("#query").val(),
       zoom: map.getZoom(),
@@ -31,8 +30,6 @@ function initializeSearch(map) {
       maxlat: bounds.getNorth()
     });
 
-    openSidebar();
-
     $("#sidebar").one("closed", function () {
       map.removeLayer(marker);
       map.removeObject();
@@ -67,11 +64,10 @@ function initializeSearch(map) {
     var center = map.getCenter(),
       zoom = map.getZoom();
 
-    $("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
     $("#sidebar_content").load($(this).attr("href"), {
       lat: center.lat,
       lon: center.lng,
       zoom: zoom
-    }, openSidebar);    
+    });
   }
 }