From 5fcbc79f74dc42ed1de60e66fec1d0bf0ab03008 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 17 Jun 2025 11:13:58 +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 | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/erp24/web/js/autoplannogramma/autoplannogramma.js b/erp24/web/js/autoplannogramma/autoplannogramma.js index 23671642..3fb0411a 100644 --- a/erp24/web/js/autoplannogramma/autoplannogramma.js +++ b/erp24/web/js/autoplannogramma/autoplannogramma.js @@ -60,13 +60,11 @@ $('.subcategory .list-group-item').on('click', function (e) { const subcategory = $link.data('subcategory'); const $row = $link.closest('tr'); - // Get filter data const filters = getFilterData(); filters.month = getMonthByWeek(week, year, true); filters.category = category; filters.subcategory = subcategory; - // Show loading overlay $('.loader-overlay').removeClass('d-none'); $.ajax({ @@ -82,27 +80,11 @@ $('.subcategory .list-group-item').on('click', function (e) { return; } - // Generate title string function - const generateTitleString = (titleObj) => { - if (!titleObj || typeof titleObj !== 'object') return ''; - return Object.entries(titleObj) - .map(([type, groups]) => { - if (typeof groups !== 'object') return ''; - const groupParts = Object.entries(groups) - .map(([group, value]) => `${group}: ${value}`); - return `${type} — ${groupParts.join(', ')}`; - }) - .filter(Boolean) - .join(' | '); - }; - - // Create document fragment for better performance const fragment = document.createDocumentFragment(); response.forEach(item => { const tr = $('').addClass('inserted-row'); - // Create subcategory cell const subcategoryTd = $(` [ val.store_id, { @@ -124,7 +105,6 @@ $('.subcategory .list-group-item').on('click', function (e) { } ]) || []); - // Process table headers $('table thead th').each(function (index) { const $th = $(this); const storeId = $th.data('store-id'); @@ -167,10 +147,8 @@ $('.subcategory .list-group-item').on('click', function (e) { fragment.appendChild(tr[0]); }); - // Append all rows at once $row.after(fragment); - // Initialize Bootstrap tooltips $('[data-bs-toggle="tooltip"]').tooltip(); }, error: function (xhr) { -- 2.39.5