From e78ab8d0d64e182c8c1d400b3064673e74330490 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 5 Nov 2014 13:57:52 +0000 Subject: [PATCH] Allow query mode to be disabled when the sidebar is open --- app/assets/javascripts/index/query.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } -- 2.43.2