fix bug whe nclicking on "show nearby locations"

This commit is contained in:
Laura Klünder 2019-12-24 23:48:02 +01:00
parent d1727a5a7b
commit 3134829cc7

View file

@ -809,7 +809,6 @@ c3nav = {
c3nav._click_anywhere_load(false);
} else if ($(this).is('.show-nearby')) {
c3nav._click_anywhere_load(true);
c3nav.update_state(false);
}
}
},
@ -1282,6 +1281,7 @@ c3nav = {
if (nearby) {
var $destination = $('#destination-input');
c3nav._locationinput_set($destination, data);
c3nav.update_state(false);
} else {
newpopup = L.popup(c3nav._add_map_padding({
className: 'location-popup',