From de090dba582a99003a0105c81e05a21128ed8da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 18 Jun 2026 19:31:22 +0400 Subject: [PATCH] =?UTF-8?q?v1.0.22:=20=D1=87=D0=B8=D1=81=D1=82=D0=B0=D1=8F?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B0=20=E2=80=94?= =?UTF-8?q?=20=D0=B1=D0=B5=D0=B7=20retry,=20timeout=20120s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.cfm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/index.cfm b/index.cfm index 0fbc4c7..99e017b 100644 --- a/index.cfm +++ b/index.cfm @@ -64,7 +64,7 @@
Nubes - Сверка договоров v1.0.21 — Lucee + Сверка договоров v1.0.22 — Lucee
@@ -232,8 +232,6 @@ uploadBtn.addEventListener('click', function() { if (i >= fileQueue.length) { uploadTimer.style.display = 'none'; uploadBtn.disabled = false; - document.getElementById('actionsCard').style.display = 'block'; - document.getElementById('chatCard').style.display = 'block'; return; } var f = fileQueue[i]; @@ -249,6 +247,7 @@ uploadBtn.addEventListener('click', function() { if (contractId) fd.append('contract_id', contractId); xhr.open('POST', '/upload.cfm'); + xhr.timeout = 120000; xhr.upload.onprogress = function(e) { if (e.lengthComputable) { f.status = Math.round(e.loaded / e.total * 100) + '%'; @@ -278,6 +277,12 @@ uploadBtn.addEventListener('click', function() { renderTable(); uploadNext(i + 1); }; + xhr.ontimeout = function() { + f.status = 'error'; + log('❌ ' + f.name + ': таймаут'); + renderTable(); + uploadNext(i + 1); + }; xhr.send(fd); } uploadNext(0);