From c2664f1b89dfee95e10fe55e40bfa539d6b16943 Mon Sep 17 00:00:00 2001 From: Polina Date: Thu, 2 Jul 2026 17:04:16 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?static/js=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 static/js/app.js diff --git a/static/js/app.js b/static/js/app.js new file mode 100644 index 0000000..b1822ce --- /dev/null +++ b/static/js/app.js @@ -0,0 +1,10 @@ +// Minimal client-side helpers +document.querySelectorAll('form').forEach((form) => { + form.addEventListener('submit', (e) => { + const btn = form.querySelector('button[type="submit"]'); + if (btn && !btn.disabled) { + btn.disabled = true; + btn.textContent = 'Загрузка…'; + } + }); +});