From f5d8c842192efc7b49d46a85a4da04eb0c6ffc41 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 17 Jun 2025 11:20:52 +0300 Subject: [PATCH] =?utf8?q?ERP-360=20=D0=A1=D0=B1=D0=BE=D1=80=D0=BA=D0=B0?= =?utf8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=B0?= =?utf8?q?=D0=B2=D1=82=D0=BE=D0=BF=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/auto-plannogramma/index.php | 9 ++++++++ .../js/autoplannogramma/autoplannogramma.js | 23 ------------------- 2 files changed, 9 insertions(+), 23 deletions(-) diff --git a/erp24/views/auto-plannogramma/index.php b/erp24/views/auto-plannogramma/index.php index 8bd3ecfe..40c1cab3 100644 --- a/erp24/views/auto-plannogramma/index.php +++ b/erp24/views/auto-plannogramma/index.php @@ -347,6 +347,15 @@ $this->registerJsFile('/js/autoplannogramma/autoplannogramma.js', ['position' => writing-mode: sideways-lr; } + .custom-tooltip .tooltip-inner { + max-width: 300px; + white-space: pre-wrap; + color: #FFD700; + background-color: #333; + font-weight: 600; + } + + .input { padding: .375rem .75rem; font-size: 1rem; diff --git a/erp24/web/js/autoplannogramma/autoplannogramma.js b/erp24/web/js/autoplannogramma/autoplannogramma.js index f137d00f..6ac6f711 100644 --- a/erp24/web/js/autoplannogramma/autoplannogramma.js +++ b/erp24/web/js/autoplannogramma/autoplannogramma.js @@ -79,28 +79,6 @@ $('.subcategory .list-group-item').on('click', function (e) { return; } - // Updated generateTitleString function - const generateTitleString = (titleObj) => { - if (!titleObj || typeof titleObj !== 'object') return ''; - - const typeTitles = { - offline: '📦 Оффлайн', - online: '🌐 Онлайн', - marketplace: '🛒 Маркетплейс' - }; - - const parts = Object.entries(titleObj) - .map(([typeKey, typeValue]) => { - if (!typeValue || typeof typeValue !== 'object') return ''; - const lines = Object.entries(typeValue) - .map(([key, val]) => `- ${key.replace(/_/g, ' ')}: ${parseFloat(val).toFixed(2)}`); - return `${typeTitles[typeKey] || typeKey}:\n${lines.join('\n')}`; - }) - .filter(Boolean); - - return parts.join('\n\n'); - }; - const fragment = document.createDocumentFragment(); response.forEach(item => { @@ -421,4 +399,3 @@ function generateTitleString(titleObj) { return parts.join('\n\n'); } - -- 2.39.5