Allow query mode to be turned off at low zoom

Fixes #830
This commit is contained in:
Tom Hughes 2014-11-07 15:58:05 +00:00
parent 2992564276
commit 526ff06172
2 changed files with 5 additions and 7 deletions

View file

@ -19,11 +19,9 @@ OSM.Query = function(map) {
e.preventDefault();
e.stopPropagation();
if (queryButton.hasClass("disabled")) return;
if (queryButton.hasClass("active")) {
disableQueryMode();
} else {
} else if (!queryButton.hasClass("disabled")) {
enableQueryMode();
}
}).on("disabled", function (e) {

View file

@ -566,16 +566,16 @@ nav.secondary {
background-color: black;
}
&.active {
background-color: #9ed485;
}
&.disabled {
background-color: #333;
background-color: rgba(0,0,0,.5);
cursor: default;
}
&.active {
background-color: #9ed485;
}
.icon {
margin: 10px;
}