jsrouting: clear search boxes on page unload
This commit is contained in:
parent
42c1dec8f0
commit
bc67479bcc
1 changed files with 3 additions and 0 deletions
|
@ -174,6 +174,9 @@ OSM.Router = function(map, rts) {
|
||||||
|
|
||||||
map.on('moveend baselayerchange overlaylayerchange', router.updateHash);
|
map.on('moveend baselayerchange overlaylayerchange', router.updateHash);
|
||||||
$(window).on('hashchange', router.hashUpdated);
|
$(window).on('hashchange', router.hashUpdated);
|
||||||
|
$(window).on('unload', function(e) {
|
||||||
|
$(".query_wrapper.routing input").val("");
|
||||||
|
});
|
||||||
|
|
||||||
return router;
|
return router;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue