From 340b27a7eaff6c05edefcdbcabc8375d98279820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Markovi=C4=87?= Date: Fri, 26 Jun 2026 01:41:40 +0200 Subject: [PATCH] =?UTF-8?q?BUGFIX:=20dropdown=20=E2=80=94=20removeProperty?= =?UTF-8?q?=20umesto=20setProperty('none')=20da=20ne=20ostaje=20inline=20b?= =?UTF-8?q?lok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/templates/stranice/servis_detalji.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/templates/stranice/servis_detalji.html b/web/templates/stranice/servis_detalji.html index 77a12f3..b234961 100644 --- a/web/templates/stranice/servis_detalji.html +++ b/web/templates/stranice/servis_detalji.html @@ -931,11 +931,13 @@ 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.setProperty('display', 'none', 'important'); + if (lista) lista.style.removeProperty('display'); var k = el.closest('.kartica'); if (k) k.classList.remove('cust-aktivan'); }); } +// Sakrij sve liste odmah na startu (Ĩisti zaostale inline blokove) +document.querySelectorAll('.cust-sel-lista').forEach(function(l) { l.style.removeProperty('display'); }); document.addEventListener('click', function (e) { var btn = e.target.closest('.cust-sel-btn'); if (btn) { @@ -975,7 +977,7 @@ document.addEventListener('click', function (e) { } cust.classList.remove('otvoren'); var lista3 = cust.querySelector('.cust-sel-lista'); - if (lista3) lista3.style.setProperty('display', 'none', 'important'); + if (lista3) lista3.style.removeProperty('display'); var k2 = cust.closest('.kartica'); if (k2) k2.classList.remove('cust-aktivan'); return;