|
|
|
@ -67,7 +67,12 @@ export function closeModalForm(close){ |
|
|
|
|
buttons.forEach(button => { |
|
|
|
|
button.onclick = function (buttonEvent) { |
|
|
|
|
modal.classList.remove('active'); |
|
|
|
|
modal.querySelector('.active').classList.remove('active'); |
|
|
|
|
|
|
|
|
|
if (!modal.querySelector('.modal-map.active')) { |
|
|
|
|
modal.querySelector('.modal-form.active').classList.remove('active'); |
|
|
|
|
}else{ |
|
|
|
|
modal.querySelector('.modal-map.active').classList.remove('active'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|