Allow query mode to be disabled when the sidebar is open
This commit is contained in:
parent
a474c095fd
commit
e78ab8d0d6
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue