From 0187f1d6548ee32c71e74373297ecc66d7327e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sat, 16 Aug 2025 13:33:53 +0200 Subject: [PATCH] poprawki --- static/js/mass_add.js | 7 +++++++ templates/list.html | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/static/js/mass_add.js b/static/js/mass_add.js index f8e29ac..9cb5fbe 100644 --- a/static/js/mass_add.js +++ b/static/js/mass_add.js @@ -81,9 +81,16 @@ document.addEventListener('DOMContentLoaded', function () { } offset += limit; + if (productCountDisplay) { productCountDisplay.textContent = `Wyświetlono ${allProducts.length} produktów.`; } + + const statsEl = document.getElementById('massAddProductStats'); + if (statsEl) { + statsEl.textContent = `(${allProducts.length} z ${data.total_count})`; + } + } catch (err) { const loadingEl = productList.querySelector('.loading'); if (loadingEl) loadingEl.remove(); diff --git a/templates/list.html b/templates/list.html index 4919ed5..3aa9ee8 100644 --- a/templates/list.html +++ b/templates/list.html @@ -223,7 +223,10 @@