From: Tom Hughes Date: Wed, 5 Nov 2014 13:57:52 +0000 (+0000) Subject: Allow query mode to be disabled when the sidebar is open X-Git-Tag: live~4347^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e78ab8d0d64e182c8c1d400b3064673e74330490 Allow query mode to be disabled when the sidebar is open --- diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index cabb93f50..30a05419c 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -22,9 +22,7 @@ OSM.Query = function(map) { if (queryButton.hasClass("disabled")) return; if (queryButton.hasClass("active")) { - if ($("#content").hasClass("overlay-sidebar")) { - disableQueryMode(); - } + disableQueryMode(); } else { enableQueryMode(); }