Update external-map.js
This commit is contained in:
committed by
Maximilian Krög
parent
8f24467ea4
commit
f4739df907
@@ -34,11 +34,13 @@ button.addEventListener('click', function () {
|
|||||||
mapWindow.addEventListener('load', function () {
|
mapWindow.addEventListener('load', function () {
|
||||||
const extMapDiv = mapWindow.document.getElementById('map');
|
const extMapDiv = mapWindow.document.getElementById('map');
|
||||||
map.setTarget(extMapDiv);
|
map.setTarget(extMapDiv);
|
||||||
|
extMapDiv.focus();
|
||||||
|
|
||||||
mapWindow.addEventListener('beforeunload', function () {
|
mapWindow.addEventListener('beforeunload', function () {
|
||||||
localMapTarget.style.height = '';
|
localMapTarget.style.height = '';
|
||||||
map.setTarget(localMapTarget);
|
map.setTarget(localMapTarget);
|
||||||
button.disabled = false;
|
button.disabled = false;
|
||||||
|
mapWindow.close();
|
||||||
mapWindow = undefined;
|
mapWindow = undefined;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user