From 2def3d2c3efde076084c4db3a5e89b43f05dd7ef Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Sun, 8 Mar 2026 01:02:33 +0200 Subject: [PATCH] =?UTF-8?q?Lis=C3=A4=C3=A4=20hakukentt=C3=A4=20admin-julka?= =?UTF-8?q?isulistaan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/admin.html b/admin.html index 073f2c4..b5c0d2f 100644 --- a/admin.html +++ b/admin.html @@ -367,6 +367,9 @@

Kaikki julkaisut

+
@@ -713,6 +716,14 @@ `).join(''); } + function filterPostList() { + const q = document.getElementById('postSearch').value.toLowerCase(); + document.querySelectorAll('#postList .post-item').forEach(el => { + const text = el.querySelector('h3').textContent.toLowerCase(); + el.style.display = text.includes(q) ? '' : 'none'; + }); + } + // =========================== // TOAST // ===========================