]> git.openstreetmap.org Git - rails.git/commitdiff
Hide .describe_location on push and popstate
authorAditya Prakash <aditya.prakash132@gmail.com>
Fri, 13 Nov 2015 04:11:47 +0000 (09:41 +0530)
committerAditya Prakash <aditya.prakash132@gmail.com>
Fri, 13 Nov 2015 04:11:47 +0000 (09:41 +0530)
app/assets/javascripts/index/search.js

index 485920c8e1f901f93c1a04b1e29bdcdac4ba0146..9481e271e9565446c9e1abee595f531a0ec1a3c5 100644 (file)
@@ -119,6 +119,7 @@ OSM.Search = function(map) {
   page.pushstate = page.popstate = function(path) {
     var params = querystring.parse(path.substring(path.indexOf('?') + 1));
     $(".search_form input[name=query]").val(params.query);
+    $(".describe_location").hide();
     OSM.loadSidebarContent(path, page.load);
   };