From a60279ae3e9e1a651e08b678187004caf64dbd53 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Thu, 14 May 2026 06:45:16 +0000 Subject: [PATCH] Fix JS syntax errors in modal success buttons (broken single quotes) --- app/templates/login.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/login.html b/app/templates/login.html index 3ec297b..f386925 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -166,6 +166,7 @@ errEl.style.display = 'none'; document.querySelectorAll('.am-invalid').forEach(el => el.classList.remove('am-invalid')); } + window._closeAccessModal = function() { closeModal(); productsLoaded = false; }; async function loadProducts() { const wrap = document.getElementById('am-products'); @@ -249,7 +250,7 @@ '
Запрос отправлен
' + '
После утверждения доступы придут на электронную почту ' + email + '
' + ''; - footer.innerHTML = ''; + footer.innerHTML = ''; } catch(e) { errEl.textContent = e.message || 'Ошибка отправки, попробуйте позже'; errEl.style.display = 'block'; @@ -353,6 +354,7 @@ errEl.style.display = 'none'; document.querySelectorAll('#contact-modal .am-invalid').forEach(el => el.classList.remove('am-invalid')); } + window._closeContactModal = closeContact; async function submitContact() { const name = document.getElementById('cm-name').value.trim(); @@ -402,7 +404,7 @@ '
Сообщение получено — свяжемся с вами в ближайшее время
' + ''; document.getElementById('cm-footer').innerHTML = - ''; + ''; } catch(e) { errEl.textContent = e.message || 'Ошибка отправки, попробуйте позже'; errEl.style.display = 'block';