]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/query.js
Don't enable query mode when loading a query URL
[rails.git] / app / assets / javascripts / index / query.js
index 30a05419c05e2a30dddc5e56490a85da886471b3..b0fdd54ef0f6142fbd10add885d8bc49e6a50b1f 100644 (file)
@@ -317,11 +317,12 @@ OSM.Query = function(map) {
     }
 
     queryOverpass(params.lat, params.lon);
-    enableQueryMode();
   };
 
-  page.unload = function() {
-    disableQueryMode();
+  page.unload = function(sameController) {
+    if (!sameController) {
+      disableQueryMode();
+    }
   };
 
   return page;