From 8ad8fc2da81240735ed6c8961f21e60c8b99fece Mon Sep 17 00:00:00 2001 From: 4aiman Date: Sun, 31 May 2026 01:30:25 +0300 Subject: [PATCH] Source badges in all search dropdowns (food, ingredient, edit food) --- frontend/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/main.js b/frontend/js/main.js index 47c14d6..b2c7eac 100644 --- a/frontend/js/main.js +++ b/frontend/js/main.js @@ -1097,7 +1097,7 @@ function showEditFoodModal(entry) { const results = await DB.searchProducts(q); resultsEl.innerHTML = results.map(p => `` ).join("") || `
Не найдено
`; @@ -4288,7 +4288,7 @@ function createProductSearch(parentEl, onSelect, opts) { dropdown.style.display = ""; dropdown.innerHTML = results.map(p => `
- ${esc(p.name)} + ${esc(p.name)} ${sourceBadge(p.source)} ${p.kcal_per_100g != null ? Math.round(p.kcal_per_100g) + " кк" : "?"}
` ).join("") || `
Не найдено
`;