From da455551afdcf9f9691dbf20f8cc4a389e38cb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Markovi=C4=87?= Date: Fri, 26 Jun 2026 01:35:21 +0200 Subject: [PATCH] =?UTF-8?q?BUGFIX:=20dropdown=20=E2=80=94=20inline=20displ?= =?UTF-8?q?ay:none=20+=20JS=20menja=20inline=20stil=20(ne=20samo=20klasu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/templates/stranice/servis_detalji.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/templates/stranice/servis_detalji.html b/web/templates/stranice/servis_detalji.html index 563ac2b..5c85d03 100644 --- a/web/templates/stranice/servis_detalji.html +++ b/web/templates/stranice/servis_detalji.html @@ -516,7 +516,7 @@ — odaberi uslugu — -
+ @@ -637,7 +637,7 @@ — odaberi artikal —
-
+ @@ -930,6 +930,8 @@ function _custZatvoriSve() { document.querySelectorAll('.cust-sel.otvoren').forEach(function (el) { el.classList.remove('otvoren'); + var lista = el.querySelector('.cust-sel-lista'); + if (lista) lista.style.display = 'none'; var k = el.closest('.kartica'); if (k) k.classList.remove('cust-aktivan'); }); @@ -942,6 +944,8 @@ document.addEventListener('click', function (e) { _custZatvoriSve(); if (!bio) { cust.classList.add('otvoren'); + var lista2 = cust.querySelector('.cust-sel-lista'); + if (lista2) lista2.style.display = 'block'; var k = cust.closest('.kartica'); if (k) k.classList.add('cust-aktivan'); } @@ -970,6 +974,8 @@ document.addEventListener('click', function (e) { inp.dispatchEvent(new Event('change', { bubbles: true })); } cust.classList.remove('otvoren'); + var lista3 = cust.querySelector('.cust-sel-lista'); + if (lista3) lista3.style.display = 'none'; var k2 = cust.closest('.kartica'); if (k2) k2.classList.remove('cust-aktivan'); return;