From 05a5b28bb61366012baf290e0c2c8a26cd56b827 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 17 Jun 2025 11:05:10 +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 --- .../js/autoplannogramma/autoplannogramma.js | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/erp24/web/js/autoplannogramma/autoplannogramma.js b/erp24/web/js/autoplannogramma/autoplannogramma.js index 25a22b28..ee2c80fa 100644 --- a/erp24/web/js/autoplannogramma/autoplannogramma.js +++ b/erp24/web/js/autoplannogramma/autoplannogramma.js @@ -118,8 +118,8 @@ $('.subcategory .list-group-item').on('click', function (e) { const isVisible = $(`table tbody tr:first td:eq(${index})`).is(':visible'); if (!isVisible) return; - const val = valuesMap[storeId] || {quantity: '', id: '', title: {}}; - const tooltipTitle = $('
').text(generateTitleString(val.title)).html(); // экранирование + const tooltipTitle = generateTitleString(val.title); + const encodedTooltip = $('
').text(tooltipTitle).html(); // безопасно экранируем const td = $(` @@ -129,8 +129,9 @@ $('.subcategory .list-group-item').on('click', function (e) { data-id="${val.id}" data-guid="${item.product_id}" data-store_id="${storeId}" - title="${tooltipTitle}" - data-bs-toggle="tooltip" data-bs-placement="top" + title="${encodedTooltip}" + data-bs-toggle="tooltip" + data-bs-placement="top" data-original-value="${val.quantity}">