hopefully fix app

This commit is contained in:
Laura Klünder 2018-12-23 21:58:17 +01:00
parent 3a42af568a
commit 2cedeb7aa4

View file

@ -1389,13 +1389,13 @@ c3nav = {
stroke: 0, stroke: 0,
fillOpacity: 1 fillOpacity: 1
}).addTo(layer); }).addTo(layer);
this._button.classList.toggle('control-disabled', false); $('.leaflet-control-user-location a').toggleClass('control-disabled', false);
} else if (c3nav.hasLocationPermission()) { } else if (c3nav.hasLocationPermission()) {
$('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('location_searching')); $('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('location_searching'));
this._button.classList.toggle('control-disabled', false); $('.leaflet-control-user-location a').toggleClass('control-disabled', false);
} else { } else {
$('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('location_disabled')); $('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('location_disabled'));
this._button.classList.toggle('control-disabled', true); $('.leaflet-control-user-location a').toggleClass('control-disabled', true);
} }
if (mobileclient.isCurrentLocationRequested && mobileclient.isCurrentLocationRequested()) { if (mobileclient.isCurrentLocationRequested && mobileclient.isCurrentLocationRequested()) {
if (location) { if (location) {