fix js error due to leaflet not being install

pull/3520/head
Isaac Connor 2022-07-05 11:03:00 -04:00
parent 92cf91c8a1
commit 831b45b8f1
1 changed files with 4 additions and 4 deletions

View File

@ -344,13 +344,13 @@ function initPage() {
form.elements['newMonitor[Latitude]'].value = position.lat;
form.elements['newMonitor[Longitude]'].value = position.lng;
});
map.invalidateSize();
$j("a[href='#pills-location']").on('shown.bs.tab', function(e) {
map.invalidateSize();
});
} else {
console.log('Location turned on but leaflet not installed.');
}
map.invalidateSize();
$j("a[href='#pills-location']").on('shown.bs.tab', function(e) {
map.invalidateSize();
});
} // end if ZM_OPT_USE_GEOLOCATION
} // end function initPage()