From: Tom Hughes Date: Fri, 28 Mar 2014 22:44:59 +0000 (+0000) Subject: Stop query button disabling query mode once it is active X-Git-Tag: live~4846^2~13 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8642e4c1f337c5088c84b2d3a6c0448ef704ed40 Stop query button disabling query mode once it is active --- diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 58750d242..2a84207ec 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -22,9 +22,9 @@ OSM.Query = function(map) { if (queryButton.hasClass("disabled")) return; if (queryButton.hasClass("active")) { - disableQueryMode(); - - OSM.router.route("/"); + if ($("#content").hasClass("overlay-sidebar")) { + disableQueryMode(); + } } else { enableQueryMode(); }