From ee9eb7b2157eefacaf992b9feba9df81b667c3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=9D=D0=B0=D0=B4=D0=B5?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Tue, 28 Oct 2025 09:33:00 +0300 Subject: [PATCH] refactor: Replace duplicate utilities in department_scripts with ES6 imports - Replaced inline esc() with import from stringUtils.js (3 instances) - Replaced inline norm() with import from stringUtils.js (2 instances) - Replaced inline debounce() with import from timing.js (1 instance) - Replaced inline smoothScrollTo() with import from scroll.js (1 instance) - Updated 4 script blocks to use ES6 modules - Eliminated ~15 lines of duplicate utility code - All 17 tests passing --- .../components/department_scripts.html | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/backend/templates/employees/components/department_scripts.html b/backend/templates/employees/components/department_scripts.html index 64a585d6..be6ec6ff 100644 --- a/backend/templates/employees/components/department_scripts.html +++ b/backend/templates/employees/components/department_scripts.html @@ -16,8 +16,9 @@ initTeamWheel({ {# ===== Переключатель панели настроек (скролл к блоку при открытии) ===== #} - {# ===== Модал «Добавить участника»: AJAX-поиск ===== #} - {# ===== Модал «Удалить участника»: локальный выбор ===== #} - {# ===== Модал «Назначить роль»: подстановка empId в action ===== #} -