]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/search.js
Minimize intro sidebar on mobile
[rails.git] / app / assets / javascripts / index / search.js
index b9e86a4c312b45cbc1f8b85f53bad8e72c054235..434135df50c21353489a4d289c8f0ef26c9299c9 100644 (file)
@@ -49,12 +49,12 @@ OSM.Search = function(map) {
   page.pushstate = page.popstate = function(path) {
     var params = querystring.parse(path.substring(path.indexOf('?') + 1));
     $("#query").val(params.query);
-    $("#sidebar").removeClass("minimized");
     map.invalidateSize();
     $("#sidebar_content").load(path, page.load);
   };
 
   page.load = function() {
+    $("#sidebar").removeClass("minimized");
     $(".search_results_entry").each(function() {
       var entry = $(this);
       $.ajax({