From 220a356574593648a3646f630062b620fe0eca51 Mon Sep 17 00:00:00 2001 From: kalugin66 Date: Thu, 5 Feb 2026 21:22:17 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=BF=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D1=84=D0=B0=D0=B8=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/files.js | 23 ----- public/ui.js | 217 ++++++++++++++++++++++++++---------------------- 2 files changed, 120 insertions(+), 120 deletions(-) diff --git a/public/files.js b/public/files.js index d37666a..a47655a 100644 --- a/public/files.js +++ b/public/files.js @@ -103,29 +103,6 @@ function removeEditFile(index) { document.getElementById('edit-files').files = dataTransfer.files; } -async function loadTaskFiles(taskId) { - try { - const response = await fetch(`/api/tasks/${taskId}/files`); - const files = await response.json(); - - const container = document.getElementById(`files-${taskId}`); - if (container) { - if (files.length === 0) { - container.innerHTML = 'Файлы: скрыто'; - } else { - container.innerHTML = ` - Файлы: -
- ${files.map(file => renderFileIcon(file)).join('')} -
- `; - } - } - } catch (error) { - console.error('Ошибка загрузки файлов:', error); - } -} - function renderFileIcon(file) { // Исправляем кодировку имени файла const fixEncoding = (str) => { diff --git a/public/ui.js b/public/ui.js index e9ff1c2..d41eea4 100644 --- a/public/ui.js +++ b/public/ui.js @@ -115,46 +115,7 @@ ${currentUser && currentUser.login === 'kalugin.o' ? `