From fa143ef289bf02ed8d96145117d0bda1c80c206e Mon Sep 17 00:00:00 2001 From: Kirill Pet Date: Tue, 29 Oct 2024 12:48:54 +0300 Subject: [PATCH] fix js --- assets/css/gp-style-tablet.css | 4 ++++ assets/js/_gp-function.js | 7 ++++++- registration.html | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/css/gp-style-tablet.css b/assets/css/gp-style-tablet.css index 5b93838..b9623e7 100644 --- a/assets/css/gp-style-tablet.css +++ b/assets/css/gp-style-tablet.css @@ -185,6 +185,9 @@ main{ transition: opacity .2s ease-out; } +.cabinet-content{ + pointer-events:none; +} .cabinet__orders.active, .cabinet__profile.active{ opacity: 1; @@ -193,6 +196,7 @@ main{ .cabinet__orders.hide, .cabinet__profile.hide{ position: static; display: block; + pointer-events:auto; } .cabinet__subscription-pc{ display: none; diff --git a/assets/js/_gp-function.js b/assets/js/_gp-function.js index a7531e2..ed4d7ab 100644 --- a/assets/js/_gp-function.js +++ b/assets/js/_gp-function.js @@ -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'); + } } }) } diff --git a/registration.html b/registration.html index 2749599..d2209e7 100644 --- a/registration.html +++ b/registration.html @@ -1139,5 +1139,6 @@ + \ No newline at end of file