bugfix opens create modal after login if geometry was drawn before
This commit is contained in:
@@ -791,6 +791,13 @@ function submitLogin() {
|
||||
currentUser = name;
|
||||
sessionStorage.setItem('webgis_user', currentUser);
|
||||
document.getElementById('login-modal').style.display = 'none';
|
||||
|
||||
// Open Create Modal if Geometry is pending
|
||||
if (drawnGeometry) {
|
||||
document.getElementById('create-geom').value = JSON.stringify(drawnGeometry);
|
||||
document.getElementById('create-geom-type').value = drawnGeomType;
|
||||
document.getElementById('create-modal').style.display = 'flex';
|
||||
}
|
||||
}
|
||||
|
||||
function skipLogin() {
|
||||
|
||||
Reference in New Issue
Block a user