FREAC / COM

Find the latest version of the web app here:

Home Page:https://hermes.freac.fsu.edu/com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geosearch control does not return to original place when address not entered

clintonlunn opened this issue · comments

The geosearch control moves to the top if a mobile browser is detected. It returns back to its original place after an address is searched.

BUT, it does not return to its original place if an address is not searched (i.e. the user opens the search bar, but does not enter an address to search.
geosearch

try putting this code in the $(document).ready section
if (L.Browser.mobile) {
$('.geocoder-control').focusout(function () {
$('.geocoder-control').css({'top': '','left': ''})
});
}

Nice! That worked great! 👍