Allow query mode to be disabled when the sidebar is open
authorTom Hughes <tom@compton.nu>
Wed, 5 Nov 2014 13:57:52 +0000 (13:57 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 5 Nov 2014 13:57:52 +0000 (13:57 +0000)
app/assets/javascripts/index/query.js

index cabb93f50148f1b0d844e5077cd59bae84601909..30a05419c05e2a30dddc5e56490a85da886471b3 100644 (file)
@@ -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();
     }