Close small mode menu on some interactions
This commit is contained in:
parent
e717c375bc
commit
7fb432dc32
2 changed files with 4 additions and 0 deletions
|
@ -412,6 +412,9 @@ $(document).ready(function () {
|
|||
|
||||
if (OSM.router.route(this.pathname + this.search + this.hash)) {
|
||||
e.preventDefault();
|
||||
if (this.pathname !== "/directions") {
|
||||
$("header").addClass("closed");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ OSM.Search = function (map) {
|
|||
|
||||
$(".describe_location").on("click", function (e) {
|
||||
e.preventDefault();
|
||||
$("header").addClass("closed");
|
||||
var center = map.getCenter().wrap(),
|
||||
precision = OSM.zoomPrecision(map.getZoom()),
|
||||
lat = center.lat.toFixed(precision),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue