Stop query button disabling query mode once it is active
This commit is contained in:
parent
50ea797f33
commit
8642e4c1f3
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@ OSM.Query = function(map) {
|
|||
if (queryButton.hasClass("disabled")) return;
|
||||
|
||||
if (queryButton.hasClass("active")) {
|
||||
disableQueryMode();
|
||||
|
||||
OSM.router.route("/");
|
||||
if ($("#content").hasClass("overlay-sidebar")) {
|
||||
disableQueryMode();
|
||||
}
|
||||
} else {
|
||||
enableQueryMode();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue