X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e78ab8d0d64e182c8c1d400b3064673e74330490..6b09732854d0efa94b5211000afe3226e1f61da0:/app/assets/javascripts/index/query.js diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 30a05419c..b0fdd54ef 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -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;